Editorial
The input number might initially be divisible by 7. However, we need to find a number greater than the input, which is divisible by 7. Therefore, we will first increase by 1. Then, in a loop, until is not divisible by 7, we will increase by 1.
Implementation of the algorithm
Read the input value .
scanf("%d", &n);
Increase by 1.
n++;
While is not divisible by 7, increase by 1.
while (n % 7 != 0) n++;
Output the answer.
printf("%d\n", n);