Created
December 7, 2020 07:03
-
-
Save heytulsiprasad/0dc71e0aa61f3c798c33276f61cc529e to your computer and use it in GitHub Desktop.
Java 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Practice { | |
public static void main(String args[]) { | |
Scanner scr = new Scanner(System.in); | |
System.out.println("please enter two numbers"); | |
int a = scr.nextInt(); | |
int b = scr.nextInt(); | |
if (a > b) System.out.printf("%d is greater than %d", a, b); | |
else System.out.printf("%d is greater than %d", b, a); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment