Skip to content

Instantly share code, notes, and snippets.

/programmingfaster Secret

Created Feb 16, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.