1. | Write a C++ program to count down from a positive integer n. Sample Output |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2. | Write a C++ program to print out the reciprocal of the integers from 11 to 22. The output should be in the following format: 1/11 = 0.090909 1/12 = 0.083333 ....... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3. | Write a C++ program to input 6 integers and compute the sum of their squares. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4. | Write a C++ program to return all the odd integers between m and n inclusively. The program should display at most 5 integers on each line of output. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5. | Write a C++ program to generate the multiplication table Sample Output
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6. | Write C++ programs to input a positive integer n, which lies in between 1 and 20, and output the corresponding number patterns as shown below.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
7. | (Optional) Write a C++ program to print a tree as shown below. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
n=5 * *** * *** ***** * *** ***** ******* * *** ***** ******* ********* * *** ***** ******* ********* *********** |