fork download
  1. #include <iostream>
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a,b;
  7. cin >> a >> b;
  8. cout << a+b << " " << a-b << " " << a*b << " " << fixed << setprecision(2) << (float)a/b << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5288KB
stdin
2 3
stdout
5 -1 6 0.67