Skip to content

Instantly share code, notes, and snippets.

@syedjafer
Created March 25, 2018 04:57
Show Gist options
  • Save syedjafer/a5c1972e62fd05236279d0c45e367ffd to your computer and use it in GitHub Desktop.
Save syedjafer/a5c1972e62fd05236279d0c45e367ffd to your computer and use it in GitHub Desktop.
latin_matrix .
#include<stdio.h>
int main()
{
int num,i;
scanf("%d",&num);
int range = num , val = num ,val_range = num;
while(range>0)
{
for(i=val;i<val_range;i++)
{
printf("%c",i+1+64);
}
// printf("\n");
val = val - 1 ;
for(i=1;i<=range;i++)
{
printf("%c",i+64);
// val = i ;
}
printf("\n");
range = range - 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment