2D Rotation
#include files
stdio.h
graphics.h
stdlib.h
math.h
conio.h
int x[10],i,j,n,ang,ang1,xf,yf,k;
void drawpolygon(int x[20]);
void main()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "");
errorcode = graphresult();
if (errorcode != grOk)
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1);
}
printf("Enter the values of n");
scanf("%d",&n);
if(n< k="2*n;" i="0;i<" i="0;i<" 2="=" i="0;i<">
No comments:
Post a Comment