Skip to content

Instantly share code, notes, and snippets.

Created February 16, 2018 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5be136a204fea945a9b597d185f4dfdf to your computer and use it in GitHub Desktop.
Save anonymous/5be136a204fea945a9b597d185f4dfdf to your computer and use it in GitHub Desktop.
programmingfaster
#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