Tuesday, 23 April 2013

Writing Letter V with c language

HOw to c /* A complete program on how to write Letter V with C Language */

/* If you don't understand below program send mail to vas.shrinivas002@gmail.com */

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

int main(void)
{
  clrscr();

 void call();
 void useme();
 call();
 useme();
  }



  void call()
  {
   int k,l;
    for(k=1;k<=3;k++)
       {
       for(l=1;l<=k;l++)
 {
  if(l==k) {
  gotoxy(k,l);
  printf("*"); }
}
      }//for
 }
void useme()
{

int i,j,c;

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

     c=0;

   for(j=6;j>=i;j--)
  {
       c=c+1;
  }

     gotoxy(c,i);
     printf("*");
  }

  getchar();

  }

-------------------------------------------------------------------- -----------------------










No comments:

Post a Comment