fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4. using namespace std;
  5.  
  6. int main() {
  7. int n;
  8. double m;
  9. char k;
  10. cin >> n >> m >> k;
  11. cout << n+m+(k-'0');
  12. return 0;
  13. }
Success #stdin #stdout 0s 4168KB
stdin
1 2 3
stdout
6