Guest User

Untitled

a guest
Jul 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void main()
  5. {
  6. cout << "This is a calculator by iHacker\n";
  7.  
  8. int a;
  9. cout << "Enter a value: ";
  10. cin >> a
  11.  
  12. int b;
  13. cout << "Enter another value: ";
  14. cin >> b
  15.  
  16. result;
  17. result = a + b;
  18.  
  19. cout << "The answer is: " << result;
  20.  
  21. for(;;)
  22.  
  23. {
  24. if(result = 1000)
  25. cout << "Here be dragons";
  26. }
  27.  
  28. while(1)
  29.  
  30. }
Add Comment
Please, Sign In to add comment