Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include "iostream"
  3. #include "conio.h"
  4.  
  5. using namespace std;
  6. int main()
  7. {
  8. int A, B, C, D;
  9. int N =0;
  10. cin >> A >> B >> C >> D;
  11. while ((A || B || C || D) >=0){
  12. A--;
  13. B-=3;
  14. C-=2;
  15. D--;
  16. N++;
  17. }
  18. cout << N;
  19. _getch();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement