Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <conio.h>
- using namespace std;
- int main(){
- float ar, geo, garm, kvad, x, y, z;
- cin >> x >> y >> z;
- ar = (x + y + z) / 3;
- geo = pow(x*y*z, 1. / 3);
- garm = 3 / (1 / x + 1 / y + 1 / z);
- kvad = sqrt((x*x + y*y + z*z) / 3);
- cout << ar << " " << geo << " " << garm << " " << kvad << "\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment