1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #include<graphics.h> #include<stdio.h> #include<conio.h> void main() { int r=5,n,i,x,y; int graphdriver = DETECT, graphmode; initgraph(&graphdriver, &graphmode, "..\\bgi"); setcolor(YELLOW); printf("ENTER THE NUMBER OF RINGS IN THE SPIRAL MODEL\n"); scanf("%d",&n); printf("Enter the origin point of the spiral"); scanf("%d%d",&x,&y); clrscr(); for(i=0;i<n;i++) { arc(x,y,0,180,r=r+2); arc(x+2,y,180,360,r=r+2); } getch(); closegraph(); } |
Description :
This is the one stop educational site for all Electronic and Computer students. If you want to learn something new then we are here to help. We work on Microcontroller projects, Basic Electronics, Digital electronics, Computer projects and also in basic c/c++ programs.
#Home #Sitemap #Resources #Terms of Use
Copyright©2012 electrofriends.com All Rights Reserved
Contact:info@electrofriends.com
worest prgogram….9 errors..this program..