с++
Объяснение:
#include <iostream>
#include <math.h>
#include <string>
#include<ctime>
using namespace std;
int main()
{
double a, b;
double r1, r2;
cout << "r1 = "; cin >> r1;
cout << "r2 = "; cin >> r2;
a = 3, 14 * r1;
b = 3, 14 * r2;
cout << (a + b) << endl;
return 0;
}
с++
Объяснение:
#include <iostream>
#include <math.h>
#include <string>
#include<ctime>
using namespace std;
int main()
{
double a, b;
double r1, r2;
cout << "r1 = "; cin >> r1;
cout << "r2 = "; cin >> r2;
a = 3, 14 * r1;
b = 3, 14 * r2;
cout << (a + b) << endl;
return 0;
}