diff --git a/If_else_example.java b/If_else_example.java new file mode 100644 index 0000000..340afb2 --- /dev/null +++ b/If_else_example.java @@ -0,0 +1,12 @@ +public class If_elseif_else { + public static void main(String[] args) { + int n =40000; + if (n>15555){ + System.out.println(n+2000); + }else if (n>21000){ + System.out.println(n+3000); + }else + System.out.println(n+5000); + } + + }