For Loop Sheet
For Loop Sheet
6. Write a program in C++ to find the number and sum of all integers
between 100 and 200 which are divisible by 9 .
Sample Output:
Numbers between 100 and 200, divisible by 9 :
108 117 126 135 144 153 162 171 180 189 198
The sum : 1683
9. Write a C++ program that asks the user to enter positive integers in
order to process count, maximum, minimum, and average or terminate
the process with -1.
Sample Output:
Your input is for termination. Here is the result below:
Number of positive integers is: 4
The maximum value is: 9
The minimum value is: 3
The average is 6.00
10. Write a program in C++ to display the first n terms of the Fibonacci
series.
Sample Output:
Input number of terms to display: 10
Here is the Fibonacci series upto to 10 terms:
0 1 1 2 3 5 8 13 21 34