Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Comparison1 {
- public static void main(String[] args) {
- float n = 3.4f;
- if (n == 4)
- System.out.println("A+");
- else{
- if (n > 3.5)
- System.out.println("A");
- else
- System.out.println("Fails");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement