C Program to create triangle of ABCD

C Program to create triangle of ABCD

Pyramid of Characters in C | C Assignment to create right triangle of ABCD

#include
#include

void main()
{
   int i,j;
   clrscr();
   for(i=65;i<=68;i++)
   {
      for(j=65;j<=i;j++)
      {
  printf("%c",j);
      }
      printf("\n");
   }
   getch();
}


No comments:

Post a Comment