write a Java program to calculate average of 3 numbers . take a method
Answers
Answered by
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
2
your answer please thanks
Attachments:
Similar questions