BetinaUKTC

4.1

Aug 19th, 2023
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. neededHours = 99
  2. days = 3
  3. workers = 1
  4.  
  5. workHours = days * 8 + (workers * 2) * days = 30 * 90% = 27
  6.  
  7. 99 - 27 = 72
  8.  
  9. /////////////Вложени проверки//////////////
  10.  
  11. public class Conditions4 {
  12. public static void main(String[] args) {
  13.  
  14. int a = 11;
  15. int b = 20;
  16.  
  17. if (a > b) {
  18. if(a % 2 == 0) {
  19. System.out.println("A is bigger and is an even number");
  20. } else if (a % 2 != 0){
  21. System.out.println("A is bigger and in an odd number");
  22. }
  23. }
  24. }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment