Write a program to input 5 integers and find their average.
Class 9 - Computer Applications - Ch 5 - Input in JAVA
Answers
Answered by
19
Hey there!
Program to input 5 integers and find their average.
public class Question
{
static void main(int a,int b,int c,int d,int e)
{
float avg;
avg=(a+b+c+d+e)/5;
System.out.println("Average="+avg);
}
}
Hope It helps You!
Answered by
9
hola mate
here is ur answer
hope this helps.
❤❤❤❤❤
Attachments:
Similar questions
Environmental Sciences,
7 months ago
Math,
7 months ago
Social Sciences,
7 months ago
Math,
1 year ago
Chemistry,
1 year ago
Math,
1 year ago
Math,
1 year ago