Implement Bar Graph in Graphics
Write a C program to implement Bar Graph in Graphics. Here’s simple program to implement Bar Graph in Graphics in C Programming Language.
Below is the source code for C program to implement Bar Graph in Graphics which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
/* C program to implement Bar Graph in Graphics */
void drawrect(int ,int);
int graphdriver = DETECT, graphmode;
initgraph(&graphdriver, &graphmode, "..\\bgi");
printf("ENTER THE NUMBER OF DATA ELEMENTS\n");
line(1,1,1,479);// Y axis
line(1,479,640,479);// X axis
printf("ENTER X AND Y CO-ORDINATES \n");
void drawrect(int a,int b)
Above is the source code for C program to implement Bar Graphs in Graphics which is successfully compiled and run on Windows System.The Output of the program is shown above .
If you found any error or any queries related to the above program or any questions or reviews , you wanna to ask from us ,you may Contact Us through our contact Page or you can also comment below in the comment section.We will try our best to reach up to you in short interval.
Thanks for reading the post….