fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x;
  6. char y;
  7.  
  8. cout << "Enter the number: " << endl;
  9. cin >> x;
  10. cout << "Enter the char: " << endl;
  11. cin >> y;
  12. cout << "Your number is: " << x << "Your char is: " << y <<endl;
  13. }
Success #stdin #stdout 0.01s 5284KB
stdin
40
A
stdout
Enter the number: 
Enter the char: 
Your number is: 40Your char is: A