Created
March 25, 2018 04:57
-
-
Save syedjafer/a5c1972e62fd05236279d0c45e367ffd to your computer and use it in GitHub Desktop.
latin_matrix .
This file contains hidden or 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 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