fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x ;
  6. char y;
  7. cout << "enter the num \n";
  8. cin>> x;
  9. cout << "enter the char \n";
  10. cin>> y;
  11. cout << x << endl << y;
  12. }
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
enter the num 
enter the char 
32767
�