EXPECTED OUTPUT
CODE:
#include<stdio.h>
int main(){
int i,j,n;
char ch='A';
printf("Enter range: ");
scanf("%d",&n);
printf("\n");
for (i=1;i<=n;i++)
{
for (j=1;j<=i;j++) // to print alphabet as per row
{
printf("%c ",ch);
}
ch++; // Increment in character A to B then to C and so on
printf("\n");
}
}
Nice information 👍👍👍
ReplyDelete👍👍
ReplyDeleteGreat 👍👍
ReplyDelete