/*program to find the smallest number greater than a given number which is also a multile of another given number*/ #include int main() { int a,b,c; /*declare the variables*/ printf("Enter the two numbers: "); scanf("%d %d",&a,&b); /*inputting the two numbers*/ if(a%b==0) printf("The answer is %d",a); /*if a is divisible by b, then the answer is a itself*/ else { c=((a/b)+1)*b; /*(a/b +1) *b gives the smallest number greater than a divisible by b*/ printf("The answer is %d",c); } }