Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public class timadaemi{
  2. public static void main(String[] args){
  3. int a = Integer.parseInt(args[0]);
  4. int max = 0;
  5. int newmax = 0;
  6. while(!StdIn.isEmpty()){
  7. int x = StdIn.readInt();
  8. if((x>max) && (x<a)) {
  9. max = x;
  10. }
  11. }
  12. System.out.println(max);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement