+ 2

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

5th Sep 2019, 3:54 AM
Nagarjuna Reddy Mandati
Nagarjuna Reddy Mandati - avatar
4 Respuestas
+ 1
Hello bro my code is posted in my question ....can you tell what are the corrections to get correct output.
5th Sep 2019, 5:49 AM
Nagarjuna Reddy Mandati
Nagarjuna Reddy Mandati - avatar
+ 1
Thanks for your response...denise
5th Sep 2019, 3:09 PM
Nagarjuna Reddy Mandati
Nagarjuna Reddy Mandati - avatar
0
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
5th Sep 2019, 4:59 AM
Tibor Santa
Tibor Santa - avatar
5th Sep 2019, 2:09 PM
Denise Roßberg
Denise Roßberg - avatar