-
-
Save anonymous/5be136a204fea945a9b597d185f4dfdf to your computer and use it in GitHub Desktop.
programmingfaster
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> | |
#include<conio.h> | |
int main() | |
{ | |
int i,j; | |
char str[10]="UNIVERSITY"; | |
for(i=0;i<=5;i++) | |
{ | |
for(j=0;j<i*2;j++) | |
{ | |
printf("%c",str[j]); | |
} | |
printf("\n"); | |
} | |
for(i=4;i>=0;i--) | |
{ | |
for(j=0;j<i*2;j++) | |
{ | |
printf("%c",str[j]); | |
} | |
printf("\n"); | |
} | |
getch(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment