5 by 5 star pattern in C.


 #include<stdio.h>

#include<conio.h>

int main( )

{

int i, j;

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

{

for(j=0;j<=4;j++)

{

printf("* \t);

}

printf("\n");

}

getch( );

return 0;

}

To run:














Output:







No comments:

Post a Comment

theengineerschoice01@gmail.com