C Program for Printing English Alphabets in Triangle Shape

Program Code:

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=0;i<26;i++)
{
for(j=0;j<=i;j++)
printf("%3c",j+65);
printf("\n");
}
getch();
}

Output:

.exe file

No comments:

Post a Comment

Please disable your ad blocker to support this website.

Our website relies on revenue from ads to keep providing free content.