Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //variables can be encapsulated between hooks
- #include <iostream>
- using namespace std;
- int main ()
- {
- double a;
- cout << "Type a number: ";
- cin >> a;
- {
- int a = 1;
- a = a * 10 + 4;
- cout << "Local number: " << a << endl;
- }
- cout << "You typed: " << a << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment