Guest User

Untitled

a guest
Nov 19th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. //variables can be encapsulated between hooks
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. double a;
  8.  
  9. cout << "Type a number: ";
  10. cin >> a;
  11.  
  12. {
  13. int a = 1;
  14. a = a * 10 + 4;
  15. cout << "Local number: " << a << endl;
  16. }
  17.  
  18. cout << "You typed: " << a << endl;
  19.  
  20. return 0;
  21. }
Add Comment
Please, Sign In to add comment