C program to text and its setting

Complete C program to text and its setting

#include<graphics.h> 
#include<conio.h> 
#include<stdlib.h> 
#include<dos.h> 
#include<stdio.h> 
void main() 
{ 
int gm, gd=DETECT; 
initgraph(&gd,&gm,””); 
setcolor(5); 
settextstyle(4,0,5); /*sets the text style with font, direction and char size 
*/ 
moveto(100,100); /*takes the CP to 100,100 */ 
outtext(“Bangalore is”); 
setcolor(4); 
settextstyle(3,0,6); 
moveto(200,200); 
outtext(“silicon”); 
setcolor(1) 
settextstyle(5,0,6); 
moveto(300.300); 
outtext(“Valley”); 
setcolor(2); 
sertextstyle(1,1,5); 
outtextxy(150,50,”Bangalore is”); 
getch(); 
} 

Leave a Comment