Write a program which takes two integers (num1 and num2) as input from the user.
Your program should display on the screen the result of i) num1 + num2, ii) num1 * num2, and iii) num1 - num2.
You are not allowed to use the + or - or * operators. E.g., cout<<num1+num1<<num1*num2<<num1-num2; is not allowed. += or -= or *= operators are also not allowed.
You HAVE TO USE loops and the ++ and -- operators. Code for num1+num2 is already available in the slides. Use that for this assignment.
Write a program which takes two integers (num1 and num2) as input from the user.
Your program should display on the screen the result of i) num1 + num2, ii) num1 * num2, and iii) num1 - num2.
You are not allowed to use the + or - or * operators. E.g., cout<<num1+num1<<num1*num2<<num1-num2; is not allowed. += or -= or *= operators are also not allowed.
You HAVE TO USE loops and the ++ and -- operators. Code for num1+num2 is already available in the slides. Use that for this assignment.
write a program in c++ which makes use of the structure and nested structure to implement an online shopping store for clothes. Get product details from user and store in arrar( size=5) of structure. Ask user to press 'Y' or'y' to continue. Keep taking input from user until user presses any character other than 'Y' or limit (size of array) reaches. following must be stored. product Id , Product Name , price, color, product catogery
Write a code to create an array with the following elements a,b,c,d,e,f,g,h,i,j,k. Test if the array contain a specific character provided by the user. If found display the index number else display "item not found."
Write a program that uses a while loop to calculate and print the multiples of 3 from 3 to 21. Your program should print each number on a separate line.
Write a program which takes two integers (num1 and num2) as input from the user. The program should display all the prime numbers between num1 and num2. i) The program can use only for loops. ii) The program can use only while loops.
Write a program which takes two integers (num1 and num2) as input from the user. The program should display the result of num1 to the power num2. i) The program can use only for loops. ii) The program can use only while loops.
Please enter the next word: cat
#1: You entered cat
Please enter the next word: iguana
#2: You entered iguana
Please enter the next word: zebra
#3: You entered zebra
Please enter the next word: dolphin
#4: You entered dolphin
Please enter the next word: STOP
All done. 4 words entered.Given a compiler which allocates 4 Bytes of memory to an integer variable, then what is the range of numbers that can be stored in such variable? Explain your answer.