Advertisement
ruhul0

Comparison1

Mar 8th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1.  
  2. public class Comparison1 {
  3.  
  4.  
  5.     public static void main(String[] args) {
  6.         float n = 3.4f;
  7.         if (n == 4)
  8.             System.out.println("A+");
  9.         else{
  10.             if (n > 3.5)
  11.                 System.out.println("A");
  12.             else
  13.                 System.out.println("Fails");
  14.         }
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement