C Program To print a Pattern - A AB ABC ABCD


 

// Program by Akash Tripathi (@proakash256)  
/*To print the pattern :
A
AB
ABC
ABCD
*/
#include <stdio.h>
int main()
{
    for(int i = 65; i <= 68; i = i + 1)
    {
        for(int j = 65; j <= i; j = j + 1)
            printf("%c" , j);
        printf("\n");
    }
    return 0;
}

Comments