Square Star Pattern
Here you will learn to print a Square Star Pattern in C programming language.
Program Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include <stdio.h> int main() { int num,i,j; printf("Enter a Number to print Square Pattern : "); scanf("%d",&num); for (int i = 0; i < num; i++) { for (int j = 0; j < num; j++) { printf("*"); } printf("\n"); } return 0; } |
Output