Skip to content

Instantly share code, notes, and snippets.

@mehtaparitosh
Created August 29, 2017 07:22
Show Gist options
  • Save mehtaparitosh/75da3289a32d31dc42e8229130378e3f to your computer and use it in GitHub Desktop.
Save mehtaparitosh/75da3289a32d31dc42e8229130378e3f to your computer and use it in GitHub Desktop.
import java.io.*;
import java.util.*;
/**
*
* @author Paritosh Mehta
*/
public class largest {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int largest = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (largest<b)
largest = b;
if (largest<c)
largest =c;
System.out.println(largest);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment