Object: To print the following

#include <stdio.h>

#include <conio.h>

main()

{

int i,j;

for (i=0; i<5; i++)

{ for (j=0; j<=i; j++)

{

printf("*");

printf("\n");

}

}

getch();

}

Comments

Popular posts from this blog

Object: To print the table of first 10 numbers.

switch LED on/off using touch switch