j_U1p3.java

import java.util.Scanner; class prog3 { public static void main(String args[]) { int a,b; Scanner sc = new Scanner(System.in); System.out.println("enter the number a:"); a=sc.nextInt(); System.out.println("enter the number b:"); b=sc.nextInt(); if(a>b) { System.out.println("a is maximum"); } else { System.out.println("b is maximum"); } } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.