For example, a pattern of size 5 had 5 rows and 5 columns and each row is made up of characters @ and a digit of the size given. This digit must be between 2 and 9.
sample:
5@@@@
@5@@@
@@5@@
@@@5@
@@@@5
and
@@@@@
5@@@@
55@@@
555@@
5555@
This is what I have so far and I dont know what to change. And yes, I am a total beginner.
Code:int i; int j; for (i=0;i<size;i++) { for (j=0;j<size;j++) { printf("@"); } printf("\n"); }