Computer Science, asked by alivia07, 11 months ago

write a java program to input two nos. and find out the greatest . Do the program without importing scanner.​

Answers

Answered by LEARNINGSCIENCE
1

public class Numbers

{

public static void main(String[] args)

{

int a,b;

if (a>b)

System.out.println("The greater number is : "+a);

else

System.out.println("The greater number is : "+b);

}

}


LEARNINGSCIENCE: Thenku thenku xF
LEARNINGSCIENCE: xD
Similar questions