#include <iostream>
using namespace std;
int main()
{
float r, a;
cout << "Enter r: ";
cin >> r;
cout << "Enter a: ";
cin >> a;
const float p = 3.14;
float s_circle = p * r * r;
float s_square = a * a;
if (s_circle > s_square)
cout << "The area of the circle is larger! " << endl;
else
cout << "The area of the square is larger! " << endl;
getchar();
getchar();
return 0;
}
Перед публікацією, радимо ознайомиться з правилами!
Знайшли помилку?
Ви можете повідомити про це адміністрацію.
Виділіть текст і натисніть CTRL+Enter