Assignment # 4
Note:- This is very important assignment follow the following instructions carefully.
- In Copy/ paste case both students will be assigned zero mark in assignment as well as in lab-sectional.
- Accurate and neat assignment will be considered in lab-sectional marking.
- The assignment will be checked on your next lab during lab-sectional.
- After lab, no assignment will be acceptable.
- All these programs should must be made in Turbo-c don't make it in Ms-word.
- Questions may be asked about your assignment in lab- Viva about your assignment so make sure you know what you make.
Q#1. Make a program that can print the following output with the help of Nested for Loop.
*
***
*****
*******
*****
***
*
Q#2.Make a program that uses loops to convert temperature from centigrade to Fahrenheit from 1 to 20 and the output should be in the following way.
Fahrenheit Centigrade
1 .........
2 .........
Q#3.Use the Nested loop concept to print the following output.
**
* *
** **
*** ***
**** ****
***** *****
****** ******
***** *****
**** ****
*** ***
** **
* *
**
Q#4.Make a program using nested loops that print the following the output.
10
99
888
7777
66666
555555
4444444
33333333
222222222
1111111111
Q#5. Make a program using the concept of nested loop that will print the following output.
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
Best of Luck!