Algorithm Analysis
Increase the number by 1. Next, in a loop while is not divisible by 10, we will increase by 1. As soon as the number is divisible by 10, it is the answer.
Algorithm Implementation
Read the input number .
scanf("%d", &n);
Increase the number by 1.
n++;
While is not divisible by 10, increase by 1.
while (n % 10 != 0) n++;
Output the answer.
printf("%d\n", n);