Wap to print line or draw line after text without using graphics


/*Wap to print line or draw line after text without using graphics*/
#include<stdio.h>
#include<conio.h>

void drawline();

void main()
{
 clrscr();

 drawline();

 printf("SMIT");

 drawline();

 getch();
}

void drawline()
{
 int i;
 printf("\n");
 for(i=0;i<10;i++)
  printf("-");
 printf("\n");

}

No comments:

Post a Comment