Skip to content

Instantly share code, notes, and snippets.

@Jaisriram3600
Created January 11, 2021 03:52
Show Gist options
  • Save Jaisriram3600/818a28792d3c9b04c91aa6cf13c1c687 to your computer and use it in GitHub Desktop.
Save Jaisriram3600/818a28792d3c9b04c91aa6cf13c1c687 to your computer and use it in GitHub Desktop.
zoho pattern
#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