Write a program in java to input three integers and compute their average through scanner class
Answers
Answered by
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
13
Answer:
hope it helps
.........................
Attachments:
Similar questions