fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. double square (double x){
  5. return x*x;
  6. }
  7. int main() {
  8. cout << square(100.5) << endl;
  9. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
10100.2