Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- public class java1task2 {
- public static void main(String[] args) {
- int a, b, c, d;
- a = 12;
- b = 10;
- c = 7;
- d = 5;
- System.out.println("f+g="+ istina(a,b));
- }
- public static int megacalculate ( int a, int b, int c, int d){
- return a * (b + (c / d));
- }public static boolean istina(int f,int g) {
- if (10 <= f + g && f + g <= 20) {
- return true;
- }
- else return false;
- }
- }
Add Comment
Please, Sign In to add comment