Monday, December 18, 2006

Playing with loops

There are three interesting questions of “for” loop. I promise you after playing with these questions you will never face any problems in" for" loop :-

Write a program for printing following results ?
Question 1.

*****
****
***
**
*

Question 2.

The toughest one
1
01
101
0101
10101


I will add more questions and solutions soon. Try to solve it out and if you have solved it please leave a comment on main page so everyone able to read it.

Return to main page.

No comments: