i need the solution to this 3 programs i c++ :
1. Write a program that inputes frome the keyboard an integer x and calculates the sum of all numbers from 1 to x.
2. Write a program that uses a for-loop to output the power of 2 from 2 to 2048.
3. using a while-loop write a program that inputs from the user an integer x and calculates outputs on the screen the product of all odd numbers between 5 and x.