#BIT_FirstSem_2016_5b_8Marks_Solution
==> Code goes like this:
#include<stdio.h>
#include<graphics.h>
int main()
{
int gd=DETECT, gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
circle(500,200,80);
rectangle(300,300,700,500);
getch();
closegraph();
return 0;
}
Output:
If you are using Turbo C++ IDE, then use conio.h in link section after stdio.h
and use getch(); to hold the output screen, just before the end of main function.
If you have any confusion regarding the program, please, comment below.
Happy Coding !
Thank you
0 comments:
Post a Comment