Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int n, mn;
- Scanner s=new Scanner (System.in);
- System.out.println("digite numero");
- mn = s.nextInt();
- for (int x = 1; x < 15; x++)
- {
- System.out.println("digite numero");
- n = s.nextInt();
- if (n > mn)
- {
- mn = n;
- }
- }
- System.out.println("maior numero digita e :" + mn);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement