Sunday, December 9, 2012

WAP to print pattern 30


#include<stdio.h>
#include<conio.h>
void main()
{
  char a=122;
  int i,j;

  clrscr();

  for(i=4;i>0;i--)
  {
    for(j=4;j>0;j--)
    {
    printf("%c",a);
    a--;
    }
    printf("\n");
  }
  getch();
}

No comments:

Post a Comment