Advertisement
laith-0093

C++

Jan 16th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <iostream.h>
  2. #include <conio.h>
  3. void main ()
  4. {
  5. int i;
  6. cout << "Please enter an integer value: ";
  7. cin >> i;
  8. cout << "The value you entered is: " << i;
  9. cout << "\nand its double is: " << i*2;
  10. getch ();
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement