+ 1
How to make a simple circle on turbo c on this app
I'm not able to get output if anyone can help Please #include<iostream.h> #include<graphics.h> #include<conio.h> int main() { clrscr() int gd=DETECT, gm: initgraph(&gd,&gm, "C:/URBOCA circle(200,200, 100); getch(); closegraph(); restorecrtmode(); return 0: }
10 Answers
+ 7
Chang Gamer paste this
Path int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\bgi");
+ 6
The header file graphics.h contains circle() function which draws a circle with center at (x, y) and given radius.
circle(x, y, radius); where, (x, y) is center of the circle. 'radius' is the Radius of the circle.
#include <graphics.h>
int main()
{Â Â int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\bgi");
    circle(250, 200, 50);
    getch();
    closegraph();
    return 0;
}
+ 5
àœÄ±ÉŹÄ±ÆÄ
ɱıÊɧàœÄ
are you sure? I don't see any mention of colors :)
Anyway I meant this as a joke only.
1. The question is poorly formulated
2. The asker did not attach any code of his own, to give a minimal context
3. It is not possible to use graphics on SoloLearn platform.
+ 5
Tibor Santa he posted code now he mentioned for turbo c Compiler.
+ 4
Chang Gamer your path in not correct
+ 4
A simple circle :
printf("o");
đ
+ 4
Tibor Santa sir this will print in black screen he asking in color using graphics
+ 4
Chang Gamer yes you can download turbo c Compiler on phone
0
Thanks for responding but it still not working
0
Is it possible on mobile