-= #1 =-
#include
using namespace std;
int main()
{
const double PI = 3,1415926535;
int radius;
cout << "Enter the radius: ";<br> cin >> radius;
cout << "The length of the circle = " << 2 * PI * radius << endl;<br>
system("pause");
return 0;
}
-= #2 =-
#include
#define _MAX(a, b) ((a) > (b) ? (a) : (b))
#define _MIN(a, b) ((a) < (b) ? (a) : (b))
using namespace std;
int main()
{
int value1, value2, value3;
cout << "Enter the numbers: ";<br> cin >> value1 >> value2 >> value3;
int sum = _MAX(value1, _MAX(value2, value3)) + _MIN(value1, _MIN(value2, value3));
sum *= sum;
cout << sum << endl;<br>
system("pause");
return 0;
}
-= #3 =-
#include
using namespace std;
int main()
{
for (int i = 100; i <= 200; i++)<br> if (i % 3 == 0 && i % 2 != 0)
cout << i << "; ";<br> cout << endl;<br>
system("pause");
return 0;
}