Computer Science, asked by rmchamwe03, 6 months ago

write a program in java that calculates the average and product of any three given numbers

Answers

Answered by piyasiya5
1

PLZ MARK AS BRAINLIEST

Answered by vidhi200447
0

Answer:

importjava.io.*;

public class avg

{

public static void main (String agrs[]) throws IO Exception

{

BufferedReaderbr= new BufferedReaderbr (New InputStreamReader(System.in)) ;

int a, b, c, sum=0, avg=0;

SOP("Enter three no. s) ;

a=Integer.parseInt(in.readLine());

b=Integer.parseInt(in.readLine());

c=Integer.parseInt(in.readLine());

sum=a+b+c;

avg=sum/3;

SOP(sum) ;

SOP(avg);

}

}

Similar questions