Computer Science, asked by saismitalala6014, 6 months ago

Write a program in java to input three integers and compute their average through scanner class

Answers

Answered by AnindaBasu
9

Answer:

class average

{

public static void main (String args[ ])

{

Scanner sc=new Scanner(System.in);

double a=sc.nextDouble();

double b=sc.nextDouble();

double c=sc.nextDouble();

double avg=(a+b+c)/3;

System.out.println("Average of three number " +avg);

}

}

Answered by SƬᏗᏒᏇᏗƦƦᎥᎧƦ
13

Answer:

hope it helps

.........................

Attachments:
Similar questions