Created
January 11, 2021 03:52
-
-
Save Jaisriram3600/818a28792d3c9b04c91aa6cf13c1c687 to your computer and use it in GitHub Desktop.
zoho pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int n, i, j; | |
scanf("%d", &n); | |
for(i=1; i<=n; i++) | |
{ | |
for(j=n; j>n-i; j--) | |
{ | |
printf("%d", j); | |
} | |
for(j=1; j<=n-i; j++) | |
{ | |
printf("%d", (n - i + 1)); | |
} | |
printf("\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment