Discussion :: C++ - MCQs
-
What is the output of this program?
#include < iostream >
using namespace std;
#define PI 3.14159
int main ()
{
float r = 2;
float circle;
circle = 2 * PI * r;
cout << circle;
return 0;
}
Answer : Option A
Explanation :
In this program, we are finding the area of the circle by using concern formula.
Be The First To Comment