Star pattern square |
Star pattern of 5*5 square shape:-
In this c program we will print a pattern of 5*5 square by using two for loop by nesting.
/*
Program : Star Pattern 5*5 Square
Filename : star1.c
IDE Used To Developed : CodeBlocks
Developed By : Pavito Golui
*/
#include<stdio.h>
int main()
{
int i,j;
for(i=1; i<=5; i++)
{
for(j=1; j<=5; j++)
{
printf(" * ");
}
printf("\n");
}
return (0);
}
Program : Star Pattern 5*5 Square
Filename : star1.c
IDE Used To Developed : CodeBlocks
Developed By : Pavito Golui
*/
#include<stdio.h>
int main()
{
int i,j;
for(i=1; i<=5; i++)
{
for(j=1; j<=5; j++)
{
printf(" * ");
}
printf("\n");
}
return (0);
}
Output :
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
0 comments:
Welcome to you in All Coding Help