Thursday, October 13, 2011

Assignment for BS(CS)-1 & BS(TN)-2

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!

9 comments:

  1. Amar bhai,.,.Whats Thissssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

    ReplyDelete
  2. this is your next assignment bro will be submitted at the time of your sectional.

    ReplyDelete
  3. if you don't get any point in this assignment then contact me at 0321-5793204 for any further query.

    ReplyDelete
  4. Ammar Bhai ..... Humari tO BanD Baja k raKh di aPne .... :(

    ReplyDelete
  5. :-) are nai yar ya programs bht asan han 5 min ka kam ha and agar ya app na khud kar liye tou fir samje app ka lab or sectional dono fit ho jahen ge.

    ReplyDelete
  6. program num 3 ki logic ni ban rahi baki sab ban gay hain..

    ReplyDelete
  7. yar dakho uss ma aik patren ha pahle jitne * han fir utne he spaces and fir utne he * han bht asan ha agar thora socho tou.

    ReplyDelete
  8. amar bhai kitny loop lagny hain program 3 main?????ma ny bana to lia hy pr loop boht lagy hain....

    ReplyDelete
  9. han aik loop ka andar 3 loop orr lage ge.

    ReplyDelete