Professional Documents
Culture Documents
C++ Grade 7
C++ Grade 7
6. A program to input a variable named p of int type. Calculate and store its double in variable named
S. Print out S.
7. Input the distance travelled by car in 4 hours. Calculate and print its speed. [Speed = distance/time].
8. Input the prize of 1 apple. Calculate and print the price of half dozen apple. [1 dozen = 12 unit].
9. Input the length and width of a rectangular park. Calculate and print its perimeter.
10. Accept the height and base of triangle and display its area. [Area = 0.5x height x base]