This commit is contained in:
2025-02-05 07:54:41 +03:00
parent 4e7fa1b23f
commit 0b7e3b6cb0
6 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#include <stdio.h>
int main()
{
int x, i, j;
printf("%s", "Enter an integer in the range 1-20:");
scanf("%d", &x); // read values for x
for (i = 1; i <= x; i++) {
for (j = 1; j <= x; j++) {
if (j==i)
printf("%c",'@'); // output @ 12
else
printf(" "); } // end inner for 15
printf("\n");
} // end outer for 17
} // end of main