fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a,b,c;
  7. cout<<"Katet 1 = "<<endl;
  8. cin >> a;
  9. cout<<"Katet 2 = "<<endl;
  10. cin>> b;
  11. c=sqrt(pow(a,2)+pow(b,2));
  12. cout<<"Gipotenuza = "<<c<<endl;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Katet 1 = 
Katet 2 = 
Gipotenuza = 0