Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. cout << "Molq vavedete dve celi chisla: \n";
  8. int a;
  9. int b;
  10. int c;
  11. int d;
  12. int e;
  13. cin >> a;
  14.  
  15. cin >>b;
  16.  
  17. if (a>b)
  18. {
  19. c=b+15;
  20. cout << "Poluchenoto chislo e " << c << endl;
  21. }
  22. else if (a==b)
  23. {
  24. d=b+15;
  25. cout << "Poluchenoto chislo e " << d << endl;;
  26. }
  27. else
  28. {
  29. e=a+15;
  30. cout << "Poluchenoto chislo e " << e << endl;
  31. }
  32.  
  33. return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement