#include<stdio.h>
int square(int side);
int main()
{ int a;
printf("ENTER THE SIDE OF SQUARE : "); scanf("%d",&a);
square(a);
return 0;
}
int square(int side)
{ int i,j;
for(i=1;i<=side;i++)
{for(j=1;j<=side;j++)
printf("*");
printf("\n");}
}
int square(int side);
int main()
{ int a;
printf("ENTER THE SIDE OF SQUARE : "); scanf("%d",&a);
square(a);
return 0;
}
int square(int side)
{ int i,j;
for(i=1;i<=side;i++)
{for(j=1;j<=side;j++)
printf("*");
printf("\n");}
}
No comments:
Post a Comment