adsense

Hii, welcome to my site. My name is Om prakash kartik. This blog helps you to learn programming languages concepts.

Print following pattern

Print following pattern
A
A B
A B C
A B C D
A B C D E

#include<stdio.h>
#include<conio.h>
  void main()
   {
   int i,j;
   clrscr();
   for(i=1;i<=5;i++)
     {
      for(j=1;j<=i;j++)
        printf("%2c",j+64);
        printf("\n");
      }
    getch();
   }    
Output:

Post a Comment

0 Comments