Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (anonymous):

Write a Java program to check the smallest value between two numbers.

OpenStudy (anonymous):

import java.util.Scanner; class group{ public static void main(String ang[]){ Scanner data= new Scanner(System.in); int num1, num2; // Read 1st number System.out.println("Enter 1st number"); num1=data.nextInt(); // Read 2nd number System.out.println("Enter 2nd number"); num2=data.nextInt(); // Find smallest number if(num1>num2) System.out.println("The smallest number:"+num2); else System.out.println("The smallest number:"+num1); } }

OpenStudy (anonymous):

@Kisiah.Chandler

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!