fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. unsigned char a , b;
  6. std::cin >> a >> b;
  7. cout << a << "(" << (int) a << ")" << endl;
  8. cout << b << "(" << (int)b << ")" << endl;
  9. cout << (1.0 + a + b) << endl;
  10. a = 100; b = 200;
  11. cout << (1.0 + a + b) << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 4344KB
stdin
100 200
stdout
1(49)
0(48)
98
301