Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);
	}
}
 
PREVIOUS NEXT
Tagged: #multiple
ADD COMMENT
Topic
Name
8+9 =