fork download
  1. #include <iostream>
  2.  
  3. using namespace::std;
  4.  
  5. int main() {
  6. int m = 100;
  7. int n = m * 20;
  8. n--;
  9. int c = m + n;
  10.  
  11. cout << "The first number is: " << m << endl;
  12. cout << "The second number is: " << n << endl;
  13. cout << "The added number is: " << c << endl;
  14.  
  15. }
Success #stdin #stdout 0.01s 5280KB
stdin
add $s0, $t2, $s0
stdout
The first number is: 100
The second number is: 1999
The added number is: 2099