Hello Guys!!! How are you ? Hope, you all are well by the grace of Almighty. Today we learn how to find out the sum and the average of some integer numbers. Let's look at the problem:
Problem: Write a program that receives five integers and returns the sum and average of these numbers.
Problem: Write a program that receives five integers and returns the sum and average of these numbers.
Solve:
Generally we know that, if five integers are a, b, c, d, & e,
their sum = (a+b+c+d+e)
their average = (a+b+c+d+e) / 5
0 comments:
Post a Comment