Round To Nearest Multiple

Computer Mathematics Hard 2 views
Back to Questions

Problem Description

Given n and k>0, round n to nearest multiple of k (ties go up).

Input Format

Two integers n k.

Output Format

Rounded multiple.

Sample Test Case

Input:
14 5
Output:
15

Constraints

k>0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next