Monday, 22 April 2013

Prog for printing this kind of letters \/ and how to use gotoxy function like space

/*Below program for printing blank spaces and letters like 'V'


#include<stdio.h>
#include<conio.h>

main()
{
int i,j;

clrscr();

     for(i=1;i<=6;i++)
      {

for(j=1;j<=i;j++)

{
 if(j==i)
   {
  printf("\n");
  gotoxy(i,j);
  printf("*");
   }

}
      }

No comments:

Post a Comment