Write an algorithm that accepts five numbers and displays the
sum and average of the numbers?

Answer Posted / a noobie

Step 1 : start
Step 2: declare a,b,c,d,e,average,sum
Step 3: read variable a,b,c,d,e
Step 4: sum=a+b+c+d+e
Step 5: average=sum/5
Step 6:stop

Remember % is a modulus (shows remainder) operator
Ex : 7%2 =1

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category