Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void main()
- {
- cout << "This is a calculator by iHacker\n";
- int a;
- cout << "Enter a value: ";
- cin >> a
- int b;
- cout << "Enter another value: ";
- cin >> b
- result;
- result = a + b;
- cout << "The answer is: " << result;
- for(;;)
- {
- if(result = 1000)
- cout << "Here be dragons";
- }
- while(1)
- }
Add Comment
Please, Sign In to add comment