Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- neededHours = 99
- days = 3
- workers = 1
- workHours = days * 8 + (workers * 2) * days = 30 * 90% = 27
- 99 - 27 = 72
- /////////////Вложени проверки//////////////
- public class Conditions4 {
- public static void main(String[] args) {
- int a = 11;
- int b = 20;
- if (a > b) {
- if(a % 2 == 0) {
- System.out.println("A is bigger and is an even number");
- } else if (a % 2 != 0){
- System.out.println("A is bigger and in an odd number");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment