#include "stdafx.h"
#include <iostream>
#define pi 3.14
using namespace std;
int main ()
{
double circle;
int n,a;
n=1;
a=2
;{
loop:
cout<<"Robert's Circumference and Area of a Circle Calculator\n";
cout<<"Enter the Radius\n" ;
cin>>circle;
cout<<"The circumference of a circle is\n"<<circle<<(2 * circle * pi)<<endl ;
cout<<"The Area of the Circle is\n"<<circle<<(circle * circle * pi)<<endl;
}
system("pause")
;if (n=a) goto loop;
;return 0;
}
it has no errors just that the forumula for the circle is wrong since it gives me the wrong answer. All this sopose to do is you type in the radius press enter and it gives you circumference and area of the circle. Please help me. I googled the formula and i used them. Then I keep getting the wrong answer and changed the forumula over and over again.