Computer Science, asked by Yuzineee9167, 4 months ago

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

Answers

Answered by rishabhchau2003
2

Answer:

a=int(input("Enter First Number")

b=int(input("Enter Second Number")

c=int(input("Enter Third Number")

d=int(input("Enter Fourth Number")

e=int(input("Enter Fifth Number")

j= (a+b+c+d+e)/5

Print("Your average is", j)

Explanation:

a,b,c,d,e is your input and j is simply average .

Answered by duragpalsingh
4

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!

Similar questions