----------------------------------------piechart graphics program-----------------------------#include <stdio.h> #include #include void main() { float arr[5],i,num,total,actudeg[5]; int gdriver=DETECT,gmode; int init,pattern,x,y; char str1[10]; initgraph(&gdriver,&gmode," "); total=0.0; printf("**********Program on piechart********"); printf("\nEnter the no of values\n"); scanf("%f",&num); printf("Enter the values to draw piechart\n"); for(i=0;i
}
}
init=init+actudeg[i]; setfillstyle(pattern,i+1); pattern+=1; y+=30;
getch();