Computer Science, asked by akshdeepsingh2kk, 1 day ago

Wriye a Program to input three numbers and print the middle number​

Answers

Answered by ItzMeSam35
3

import java.util.*;

public class MN

{

public static void main (String args[])

{

Scanner sc=new Scanner (System.in);

System.out.println("Please Enter The First Value");

double first = sc.nextDouble();

System.out.println("Please Enter The Second Value");

double second = sc.nextDouble();

System.out.println("Please Enter The Third Value")

double third = sc.nextDouble();

System.out.println("Middle Number = "+third)

sc.close();

}

}

Similar questions