Computer Science, asked by FriendlyAditya, 9 months ago

write a Java program to calculate average of 3 numbers . take a method​

Answers

Answered by Anonymous
20

Answer:

average of 3 numbers

/* Program to calculate average of 3 numbers */

class P1

{

public static void main(String args[])

{

int a, b, c, average;

a = 3;

b = 7;

c = 2 ;

average = ( a + b + c ) / 3;

System.out.println(" Average : "+average);

}

}

Explanation:

msg me dear if you have any doubt

Answered by kgautam16847
2

your answer please thanks

Attachments:
Similar questions