fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int number;
  6. cout<<"enter a number is:"<<endl;
  7. cin>>number;
  8. int doubled = number *2;
  9. cout<<"doubled is:"<<doubled<<endl;
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5288KB
stdin
4
stdout
enter a number is:
doubled is:8