Advertisement
7_2009-2012 Graphics/ Sound #237216

A FUNNY CIRCLE

FUNNY CIRCLE

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
#include<stdio.h>
	#include<conio.h>
	#include<dos.h>
	#include<graphics.h>
	#include<math.h>
	void main() 	{
	float pi=3.1415927;
	float x1,y1,x2,y2;
	int i,j,r1;
	int gd=DETECT,gm;
	initgraph(&gd,&gm,"");
	j=100;
	circle(250,250,j);
	i=0;
	while(i<=750)
	{
	x1=80*cos(i*pi/360);
	y1=80*sin(i*pi/360);
	x2=((x1+j)*(x1+j));
	y2=y1*y1;
	r1=floor(sqrt(x2+y2));
	delay(90);
	circle(floor(x1+250),floor(y1+250),r1);
	i=i+10; 	}
	getch();	}
Original Comments (3)
Recovered from Wayback Machine