Program to print string using settextstyle with outtextxy function

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
  clrscr();
  int gm=DETECT,gd,i;
 initgraph(&gm,&gd,"");
 settextstyle(0,0,2); //(font,direction,charsize)
outtextxy(100,150,"WELCOME TO GRAPHICS");
getch();
}

Leave a Reply