Hello again,
I am writing a code for class and I thought I hat it all down pat. However, can not get any feedback from the input when I compile this on XCode.
My code is as follows:
/*
James George Hayek
PCCC Assignment 2
Prof Siegel
This program will calculate the area and circumference of a circle.
*/
#include <iostream>
#include <cmath>
using namespace std;
int main ()
{
float radius;
float circumference;
float area;
cout << "Please enter the radius of a circle: ";
cin >> radius;
cout << "\n";
circumference = 2 * 3.1416 * radius;
area = 3.1416 * radius * radius;
cout << "************************************" << "\n"
<< "*Area and Circumference of A Circle*" << "\n"
<< "************************************" << "\n"
<< "\tRadius= " << radius << "\n"
<< "\tArea= " << area << "\n"
<< "\tCircumference= " << circumference << "\n";
cin.get();
return 0;
} //end main
Okay, I just trouble shot this and it seems as though this works in the terminal but I can not get it to respond in the console in XCode. Should I not worry about this?