Free good programme to try out!!!

Hi there this is a must try tool by me. This is the download link: http://www.mediafire.com/?7v2and6eqa8hple
Here is the code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include <iostream>
#include <string>
using namespace std;

int again();
int close();
#define pie 22/7
double radius;
int x = 0;
long double circle;
long double sq;
string y;

int main()
{	
	cout<<"\tThis tool by Aceix is used to determine the area of a circle";
	
	cout<<"\n\n\nPlease enter the radius of the circle: ";
	cin>>radius;
	sq = radius * radius;
	circle = pie * sq;
	cout<<"\n\nThe area of the circle is: "<<circle;
	cout<<"\n\nDo you want want to calculate more(y/n):";
	cin>>y;
	y == "y" ? again() : close();
	cin.ignore();
	cin.get();
}

int again()
{
	do {
	if(x >= 1)
	 cout<<"\n\n\nEnter the radius of the circle: ";
	else
	 cout<<"\n\n\nThen enter the radius of the circle: ";
	cin>>radius;
	sq = radius * radius;
	circle = pie * sq;
	cout<<"\n\nThe area of the circle is: "<<circle;
	x++;
	cin.ignore();
	cin.get();
	if(x == 10) {
	 cout<<"\n\nYou have used this tool 10 times. Please re-launch it.";
	 cin.get();
	 return 0;
	}
	} while(x < 10);
}

int close()
{
	if(y == "n")
	 cout<<"Thanks...";
	else
	 cout<<"Wrong input\nExiting...";
	return 0;
}
Any comments?
22/7 might be pie but it isn't pi (at least not post the second decimal)
It's worse, even. 22/7 is exactly 3.
True, I didn't think of integer division.
Thx i will be workin on it
Topic archived. No new replies allowed.