Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- vlado met = new vlado();
- Scanner scanner = new Scanner(System.in);
- int numOne = Integer.parseInt(scanner.nextLine());
- int numTwo = Integer.parseInt(scanner.nextLine());
- int numThree = Integer.parseInt(scanner.nextLine());
- System.out.println(met.sum(numOne, numTwo, numThree));
- }
- private int sum(int a, int b, int c) {
- int max = a;
- if (b > max) {
- max = b;
- }
- if(c>max){
- max=c;
- }
- return max;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement