fork download
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int main() //this function doesn't work
  6. {
  7. int t1 = 3, t2 = 4, t3 = 5;
  8. if (pow(t1, 2) + pow(t2, 2) == pow(t3, 2)) {
  9. cout << "Works" << endl;
  10. } else { cout << "Doesn't work" << endl; }
  11. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
Works