Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- //Const sendo alterado em tempo de execução multiplas vezes.
- int main()
- {
- while(true)
- {
- int x =3;
- cout <<"digite um numero: ";
- cin >> x;
- const int n =x+2;
- cout << n << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement