alphabet pattern 14
Alphabet Right angle Pattern Program in C
#include<stdio.h>
#include<conio.h>
void main()
{
int i ,j,k;
int n=5; //size
for(i=n-1;i>=0;i--)
{
for(j=n-1;j>i;j--)
{
printf(" ");
}
for(k=0;k<=i;k++)
{
printf("%c",k+65);
}
printf("\n");
}
getch();
}
No comments:
Post a Comment