+ 1
Which one is correct? a=PI*pow(r,2) or a=PI*pow(r,2); where #define PI 3.14
3 Respostas
+ 12
#define PI 3.1415
int main() {
int r = 2;
double a = PI * pow(r, 2);
std::cout << a; // output : ~ 12.5664
}
+ 11
Absolutely Serjeel.
+ 1
a semicolon is required right?