Contact Learn C
Copy Program Share Program

Program 66:Alpha Pattern 4

Program 66:
 
#include<stdio.h>
main()
{
    int i,j,num,k,count;
    printf("Enter number of rows\n");
    scanf("%d",&num);
    count=num-1;
    int alpha=64;
    for(i=1;i<=num;i++)
    {
    for(k=1;k<=count;k++)
    {
        printf(" ");
    }
        for(j=1;j<=i;j++)
        {
            printf("%c",alpha+j);
           
        }
        
    printf("\n");
    count--;
    }
}
Explanation:

//Coming Soon...

Output:

Alpha Pattern4

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide