Code.GeekInterview.com
  I am new, Sign me up!
 
Code Samples C
 

Glittering Circle


Code ResourceAuthor: kaivalya1989  

Difficulty Level: Intermediate

Published: 5th Sep 2008   Read: 2368 times  

Filed in: C
Add Comment


 


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 Comment


Members Please Login

Name:  Email: (Optional. Used for Notification)

Title:
 
Comment:
Validation Code: <=>  (Enter this code in text box)





Popular Coders

# Coder NameHits
1. kaivalya198914888
2. chandrikakr4780
3. meefriend4ever3543
4. sripri2893
5. deepu082809
6. Jimmy Zorald2562
7. Rajani1616
8. norman1439
9. reliable1092

Active Coders

# Coder NameCodes
1. kaivalya19894
2. sripri1
3. Jimmy Zorald1
4. norman1
5. Rajani1
6. meefriend4ever1
7. chandrikakr1
8. reliable1
9. deepu081

Refined Tags

 

Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact  

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape