fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<<"hello"<<endl;
  6. cout<<"what's up bro";
  7. cout<<"hi"<<endl;
  8. cout<<1+1<<endl;
  9. cout<<(2+3)*4-15<<endl;
  10. cout<<2*3/5<<endl;
  11. cout<<2.0*3/5<<endl;
  12. cout<<10.0/9<<endl;
  13. cout<<1.11111*9<<endl;
  14. cout<<160%3<<endl;
  15. cout<<1+2*3-10%3<<endl;
  16. cout<<"1+2*3-10/3.0="<<1+2*3-10/3.0<<endl;
  17. return 0;
  18. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
hello
what's up brohi
2
5
1
1.2
1.11111
9.99999
1
6
1+2*3-10/3.0=3.66667