i need a complete C program to draw a sin curve without any application and the output should be displayed in dos prompt. can anyone please help me
Here's a sampleprogram that draws a sine with the SetPixel() function (as Clockowl suggested):
HWND console = GetConsoleWindow();
HDC dc = GetDC(console);
int pixel =0;
COLORREF C1= RGB(255,0,0); //red
for (double i = 0; i< 6.3; i+=0.05)
I remember something about a polyline() function that can connect the dots, but that's for you to research.
Personally I would really recommend to use wxWidgets (or something like it). It has great function for drawing graphs and is platform-independent
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: