Computer Science, asked by MasterQuestioner, 11 months ago

Write a program to input 5 integers and find their average.

Class 9 - Computer Applications - Ch 5 - Input in JAVA

Answers

Answered by duragpalsingh
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 Anonymous
9

hola mate

here is ur answer

hope this helps.

❤❤❤❤❤

Attachments:
Similar questions