Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How do I draw a parabola in Turbo C++?
I am a student 16 years of age and desperately need this for my Computer Project.
2 Answers
- 1 decade agoFavorite Answer
// I ve checked this on TC 3.. its working well
#include <graphics.h>
#define color 255
#include <stdio.h>
#include<math.h>
void main()
{
int gdriver=DETECT, gmode;
int x,y,a=2,temp; //a= focal length
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
//plot y*y =4ax;
for(x=0;x<200;x++)
{
y=sqrt(4*a*x);
putpixel(x+200,y+200,color);
}
for(x=0;x<200;x++)
{
y=-sqrt(4*a*x);
putpixel(x+200,y+200,color);
}
getch(); /* pause screen */
closegraph();
}
- BbOy_RiDdLeRLv 41 decade ago
http://www.physicsforums.com/archive/index.php/t-1...
i think that the answer is there.