Skip to content

Instantly share code, notes, and snippets.

@lamichhaneshreeram052
Created March 8, 2014 10:31
#include<stdio.h>
#include<conio.h>
#include<string.h>
int main()
{
char name[8]="AMERICA";
int l,a,b;
l=strlen(name);
for(a=0;a<=l;a++)
{
for(b=0;b<(l-a);b++)
{
printf(" ");
}
for(b=(l-a);b<=l;b++)
{
printf("%c",name[b]);
}
printf("\n ");
}
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment