Define a method which return the sum of three rounded numbers

If the right most digit of the number is lessthan 5,then round off it's value to previous multiple of 10 otherwise if right most digit of the number is greater or equal to 5 ,the round off to next multiple of 10. I know the process but i don't know how to write in a sequence...in answers i posted a code ,please anyone make it corret https://code.sololearn.com/cJKRkE1OOavY/?ref=app

9/5/2019 3:54:44 AM

Nagarjuna Reddy Mandati

4 Answers

New Answer


Hello bro my code is posted in my question ....can you tell what are the corrections to get correct output.


Thanks for your response...denise


Please indicate the programming language in tags. This sounds like a homework assignment. Don't expect others to write it for you. Show some effort and post the code you are stuck with, explain your problem. Tip: to get the last digit of any number, you can use modulo 10


Hope this helps you: https://code.sololearn.com/cDYB4w6JK82a/?ref=app