Computer Science, asked by beenagupta9876, 16 hours ago

give the variable description and output of this program please guys tell me urgent i will mark you as brainliest .​

Attachments:

Answers

Answered by kaursukhmanpreet2005
1

Answer:

import java.util.Scanner; public class KboatSmallestNumber { public static void main(String args[]) { Scanner in = new Scanner(System.in); System.out.print("Enter First Number: "); int a = in.nextInt(); System.out.print("Enter Second Number: "); int b = in.nextInt(); System.out.print("Enter Third Number: "); int c = in.nextInt(); int s = Math.min(a, b); s = Math.min(s, c); System.out.println("Smallest Number = " + s); } }

Explanation:

out put :

enter first number 20

second 10

third 15

smallest 10

Similar questions