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