Code.GeekInterview.com
 
Code Samples C
 

Glittering Circle


Code ResourceAuthor: kaivalya1989  

Difficulty Level: Intermediate

Published: 5th Sep 2008   Read: 4018 times  

Filed in: C
Add Comment


 

 

Sponsored Links


 

 

this code uses graphical functions and outputs a glittering circle

 


Sample Code
  1. #include<stdio.h>
  2. #include<conio.h>
  3. #include<graphics.h>
  4. #include<dos.h>
  5. #include<stdlib.h>
  6. main()
  7. {
  8. int gdriver=DETECT,gmode,h,i,j;
  9. initgraph(&gdriver,&gmode,"c:tcbgi");
  10. j:
  11. for(i=1;i<=80;i++)
  12. {
  13. setcolor(i);
  14. circle(100,100,i);
  15. delay(3);
  16. cleardevice();
  17. }
  18. for(j=80;j>=1;j--)
  19. {
  20. circle(100,100,j);
  21. delay(3);
  22. cleardevice();
  23. }
  24. goto j;
  25. }
  26.  
Copyright GeekInterview.com


Next Article: String Encryption


 

Latest Code Samples

 

Popular Code Samples

 

Related Code Samples

 

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    



Popular Coders

# Coder NameHits
1. kaivalya198932267
2. mano.mithun19213
3. deepu0817234
4. meefriend4ever7817
5. chandrikakr7809
6. shashivaishnav6681
7. sadasivathavamani6553
8. venkatakrishnansvpr6429
9. Jimmy Zorald6268
10. sripri5427

Active Coders

Refined Tags