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
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