You need to submit the code and program output
Q1. you will write a program that uses a for statement to calculate and display the sum of all odd numbers between 6 and 27 inclusive on the screen.
Q2. Write statements that assign random integers to the variable n in the following ranges: Use the random function to generate the numbers. Put the statements in a C++ Program and run it.
Q2 output:
a) 20
b) 257
c) 102
d) 1907
e) 13
Comments
Leave a comment