Tuesday, 4 November 2014

How to make a circlue without using graphics








How to make a circlue without using graphics


#include<stdio.h>
#include<conio.h>
#include<stdio.h>
#include<math.h>
void main()
{
clrscr();
int ab,ord;

for (ab=-5;ab<=8;ab++)
{
for(ord=-5;ord<=8;ord++)
{
if(pow(ab,2)+pow(ord,2)==25)
printf("*");
else
printf(" ");
}
printf("\n");
}
getch();
}

No comments:

Post a Comment