olympics logo computer graphics code in opengl
#1

olympics logo computer grqphics code in opengl
Reply
#2
#include<stdio.h>
#include<graphics.h>
#include<conio.h>
#include<math.h>
#include<dos.h>
void main()
{
int i=0,j=0,k=0,l=0,m=0,ch;
float pi=3.1424,a,b,c,d,e;
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
printf("\n\nEnter 1 or 2 ");
scanf("%d",&ch);
printf("\n\nYou have entered %d",ch);
getch();
clrscr();
switch(ch)
{
case 1 : while(i<360)
{
a=(pi/180)*i;
setcolor(3);
circle(120+100*sin(a),150-100*cos(a),10);
i++;
delay(5);
}
while(j<360)
{
b=(pi/180)*j;
setcolor(0);
circle(280+100*sin(b),150-100*cos(b),10);
j++;
delay(5);
}
while(k<360)
{
c=(pi/180)*k;
setcolor(4);
circle(440+100*sin©,150-100*cos©,10);
k++;
delay(5);
}
while(l<360)
{
d=(pi/180)*l;
setcolor(14);
circle(200+100*sin(d),300-100*cos(d),10);
l++;
delay(5);
}
while(m<360)
{
e=(pi/180)*m;
setcolor(2);
circle(370+100*sin(e),300-100*cos(e),10);
m++;
delay(5);
}

break;
case 2 : while(i<360)
{
a=(pi/180)*i;
setcolor(3);
circle(120+100*sin(a),150-100*cos(a),10);
i++;
delay(5);
}
while(l<360)
{
d=(pi/180)*l;
setcolor(14);
circle(200+100*sin(d),300-100*cos(d),10);
l++;
delay(5);
}
while(j<360)
{
b=(pi/180)*j;
setcolor(0);
circle(280+100*sin(b),150-100*cos(b),10);
j++;
delay(5);
}
while(k<360)
{
c=(pi/180)*k;
setcolor(4);
circle(440+100*sin©,150-100*cos©,10);
k++;
delay(5);
}
while(m<360)
{
e=(pi/180)*m;
setcolor(2);
circle(370+100*sin(e),300-100*cos(e),10);
m++;
delay(5);
}

break;
default:
setcolor(13);
outtextxy(190,220,"YOU HAVE ENTERED THE WRONG CHOICE!!");
}
getch();
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: autosar logo, where can i get university of santo tomas logo, logo of railway wagon repair workshop kota, snehal name logo image, lilitha college of nursing logo, instrumentation limited kota logo, gdefy shoes logo,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  Nvidia tesla super computer 0 6,696 13-02-2020, 09:29 PM
Last Post:
  computer aided design vijayaraghavan book free download 2 10,050 27-11-2018, 04:49 PM
Last Post:
  m phil computer science projects free download 0 703 23-10-2018, 01:19 PM
Last Post: Guest
  computer integrated manufacturing ebook jayakumar pdf 0 643 07-10-2018, 07:26 PM
Last Post: Guest
  computer integrated manufacturing pdf in vijayaraghavan 0 581 04-10-2018, 03:01 PM
Last Post: Guest
  computer aided design vijayaraghavan book free download 0 1,052 23-08-2018, 11:17 AM
Last Post: Guest
  computer networks by bakshi pdf 0 682 22-08-2018, 09:36 AM
Last Post: Guest
  techmax ebooks activation code for computer architecture and organization 0 775 21-08-2018, 08:54 PM
Last Post: Guest
  computer graphics notes hindi pdf free download 1 1,392 21-08-2018, 05:07 PM
Last Post: Dharmesh Sankhla
  computer integrated manufacturing pdf in vijayaraghavan 0 564 14-08-2018, 07:49 PM
Last Post: Guest

Forum Jump: