- #1

JamesU

Gold Member

- 750

- 3

## Main Question or Discussion Point

What's wrong with this C++ project I'm working on? it's supposed to find the area of a circle:

#include <cstdlib>

#include <iostream>

using namespace std;

int main(int argc, char *argv[])

{

int pi = 3.14

int rad

int radsqr = rad*rad

cout << "radius of the circle:" <<

cin >> rad

cout >> "The radius of the circle is about:" << radsqr*pi << end1;

system("PAUSE");

return EXIT_SUCCESS;

}

#include <cstdlib>

#include <iostream>

using namespace std;

int main(int argc, char *argv[])

{

int pi = 3.14

int rad

int radsqr = rad*rad

cout << "radius of the circle:" <<

cin >> rad

cout >> "The radius of the circle is about:" << radsqr*pi << end1;

system("PAUSE");

return EXIT_SUCCESS;

}