fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // Input
  6. int a = 6, b = 2;
  7. // Process -> Output
  8. cout << a + b << '\n' << a - b << '\n' << a*b << '\n' << (float)a / b;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
8
4
12
3