+ 1

Help with code

Write a C# Sharp that allows a user to input a number of integer values stored in an array. Write two separate methods one for calculating the sum, the second for the average. These functions should accept the array as input into the function. https://code.sololearn.com/cn6utjJmZpn0/?ref=app

26th Nov 2019, 9:44 AM
fardowsa mohamed
fardowsa mohamed - avatar
2 Answers
+ 2
Have a look at this link https://code.sololearn.com/cQqBGJoqYoVt There were some copy issue The total was already returned in the for-loop The code is working now. You should implement your self Call the SUM-method Print the result of the SUM-method
26th Nov 2019, 9:15 PM
sneeze
sneeze - avatar
0
Thanks
27th Nov 2019, 5:53 AM
fardowsa mohamed
fardowsa mohamed - avatar