fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5.  
  6. int num = 0, product = 0;
  7.  
  8. cout << "Enter an integer: ";
  9. cin >> num;
  10.  
  11. product = 2 * num;
  12.  
  13. cout << "Double that number is: " << product << endl;
  14.  
  15.  
  16. return 0;
  17.  
  18. }
Success #stdin #stdout 0s 5540KB
stdin
Standard input is empty
stdout
Enter an integer: Double that number is: 0