Untitled
unknown
plain_text
2 years ago
399 B
0
Indexable
Never
#include <iostream> #include <fstream> #include <math.h> #include <iomanip> #include <cmath> using namespace std; float abo(int a, int b) { float L; return L = 4 * ((3.14 * a * b + pow((a + b), 2)) / a + b); } int main() { ifstream in("elips.txt"); int a; in >> a; for (int i = 0; i < a; i++) { int a, b; float L; in >> a >> b; cout << abo(a,b) << endl; } }