Wednesday, October 7, 2020

C Square Star Pattern

 

CODE :-

#include <stdio.h>
int main()
{
int i, j, num;
printf("Enter a number: ");
scanf("%d",&num);
printf("\n");
for(i = 0; i < num; i++)
{
for(j = 0; j < num; j++)
{
printf("*");
}
printf("\n");
}
return 0;
}

    Choose :
  • OR
  • To comment
No comments:
Write Comments