Contact Learn C
Copy

Program 42:Alphabetical Pattern1

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

  //Pending
  
Output:

Alphabetical Pattern1
Donate

Download App and Learn when ever you want

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