PATTERN:

A

B  C

D  E  F

G  H  I  J
C SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main()
{ 
int n, i, j,c=65;   
printf("  Enter the number of rows\n"); 
scanf("%d", &n);   
for (i = 1; i<= n; i++) 
{ 
for (j= 1; j<= i; j++) 
{ 
printf("%3c",c);
c++; 
} 
printf("\n"); 
}
getch();
}

Comments

Popular posts from this blog