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: logo of the university of the northern, anchoring lines for any logo inauguration, logo of ntpc, olympics logo computer graphics code in opengl, tarlac state university logo of the, the control circuits in the electric elevator logo soft, lilitha college of nursing logo**ansmision system,

[-]
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,690 13-02-2020, 09:29 PM
Last Post:
  computer aided design vijayaraghavan book free download 2 10,031 27-11-2018, 04:49 PM
Last Post:
  m phil computer science projects free download 0 697 23-10-2018, 01:19 PM
Last Post: Guest
  computer integrated manufacturing ebook jayakumar pdf 0 639 07-10-2018, 07:26 PM
Last Post: Guest
  computer integrated manufacturing pdf in vijayaraghavan 0 579 04-10-2018, 03:01 PM
Last Post: Guest
  computer aided design vijayaraghavan book free download 0 1,049 23-08-2018, 11:17 AM
Last Post: Guest
  computer networks by bakshi pdf 0 680 22-08-2018, 09:36 AM
Last Post: Guest
  techmax ebooks activation code for computer architecture and organization 0 771 21-08-2018, 08:54 PM
Last Post: Guest
  computer graphics notes hindi pdf free download 1 1,382 21-08-2018, 05:07 PM
Last Post: Dharmesh Sankhla
  computer integrated manufacturing pdf in vijayaraghavan 0 561 14-08-2018, 07:49 PM
Last Post: Guest

Forum Jump: