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 = 65i <= 68i = i + 1)
    {
        for(int j = 65j <= ij = j + 1)
            printf("%c" , j);
        printf("\n");
    }
    return 0;
}

Comments