Answers for "how to find next multiple of 5 in javascript"

1

how to find next multiple of 5 in javascript

let a = Number(input) / 5
    return Math.ceil(a) * 5;
Posted by: Guest on October-24-2021
0

round to the next multiple of 5

public class Main
{
	public static void main(String[] args) {
    int num = 5;
    int nextMultipleOfFive = (num/5+1)*5;
    System.out.println(nextMultipleOfFive);
	}
}
Posted by: Guest on December-30-2020

Code answers related to "how to find next multiple of 5 in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language