C Program: Design the Program for the given Structure

Engg.... | 01:39 | | Best Blogger Tips
design

NESTED FOR STATEMENT:
If one for statement is completely placed with in the other.

POINTS TO REMEMBER:
  • One loop must completely be placed inside the other loop means no overlapping of loops.
  • Each loop must have different variables.

#include<stdio.h>
void main()
{
int a,b;
char ch='*' ;

for(a=0 ;a<5 ;a++)
{
for(b=0 ;b<=a ;b++)
{
printf("%c" , ch);
}
printf("\n");
}                                                   // End of a loop
}                                                   // End of main()

Please Share it! :)
Do you like this Story?

Get Free Email Updates Daily!

Follow us!

3 comments:

  1. Fact!!! Thanks for sharing complete point…one more company has articles about Webdesign Agenter website pixo web design.

    ReplyDelete
  2. Your argument is excellent!! Unique points in the same, here one more website I like joomla development company.

    ReplyDelete
  3. I really appreciated with your content and completely agree with you, here also I was visit a company website Digital zona.

    ReplyDelete