Computer Science, asked by swarna6520, 7 hours ago

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 ganugowda2006
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