-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.c
More file actions
28 lines (21 loc) · 661 Bytes
/
1.c
File metadata and controls
28 lines (21 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//1. WAP to print "Computer Graphics" using 5 font styles. [Hint: use settextstyle() and outtextxy() functions]
#include<graphics.h>
#include<conio.h>
#include<stdio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:/turboc3/bgi");
settextstyle(8,0,5);
outtextxy(50,100,"Computer Graphics");
settextstyle(7,0,5);
outtextxy(50,150,"Computer Graphics");
settextstyle(6,0,5);
outtextxy(50,200,"Computer Graphics");
settextstyle(5,0,5);
outtextxy(50,250,"Computer Graphics");
settextstyle(4,0,5);
outtextxy(50,300,"Computer Graphics");
getch();
closegraph();
}