-->
Showing posts with label C program to print alphabetical character pattern A. Show all posts
Showing posts with label C program to print alphabetical character pattern A. Show all posts

C program to print alphabetical character pattern A

/**
 C program to print alphabetical character pattern A
A
AB
ABC
ABCD
ABCDE
 */
#include <stdio.h>
#include<conio.h>
void main()
{

int i, j;
for (i=1;i<=5;i++)
{
for (j=0;j<i;j++) {
printf("%c", 'A'+ j);
}
printf("\n");
}
return 0;
}