write java programs for the following Write a program to declare three variables and assign some values to them and.find the biggest of the and print them on the output screen.
Answers
Answered by
0
Answer:
Explanation:
import java.util.Scanner;
public class LargestNumberExample1
{
public static void main(String[] args)
{
int a, b, c, largest, temp;
System.out.println("Enter the first number:");
a = sc.nextInt();
System.out.println("Enter the second number:");
b = sc.nextInt();
System.out.println("Enter the third number:");
c = sc.nextInt();
System.out.println("The largest number is: "+largest);
}
}
Similar questions
Hindi,
4 hours ago
English,
4 hours ago
Science,
7 hours ago
Science,
8 months ago
Social Sciences,
8 months ago
Computer Science,
8 months ago