#include int main () { int num=0; printf("Enter the number: "); scanf("%d",&num); // differnet cases can be made for positive and neagative numbers - That would require use of if - else int modBy5 = num%5; int divisiblePart = num - modBy5; int factor = divisiblePart / 5; printf(" The number in desired format :%d * %d + %d\n",factor,5,modBy5); // %.02f is for limiting the precision to 2 decimal point. }