GRR WORK DARNIT


SUBMITTED BY: Guest

DATE: April 5, 2013, 8:10 p.m.

FORMAT: C++

SIZE: 677 Bytes

HITS: 1962

  1. #include <iostream>
  2. #ifdef WIN32
  3. #include <windows.h>
  4. #endif
  5. using namespace std;
  6. int main()
  7. {
  8. int a;
  9. int b;
  10. cout << "Enter a number: ";
  11. cin >> a;
  12. if (a == 1)
  13. {
  14. cout << "Enter a second number: ";
  15. cin >> b;
  16. if (b == 1)
  17. {
  18. cout << "You selected 1,1 " << endl;
  19. }
  20. else if (b = 2 )
  21. {
  22. cout << "You selected 1,2" << endl;
  23. }
  24. else
  25. {
  26. cout << "I have no idea what you pressed!" << endl;
  27. }
  28. }
  29. system("PAUSE");
  30. return 0;
  31. }

comments powered by Disqus