Help me in solving MINCOINSREQ problem

My issue

what is the procedure

My code

#include <stdio.h>

int main(void) {
	// your code goes here
	return 0;
}


Problem Link: MINCOINSREQ Problem - CodeChef

@nrdurjoy14
answer would be x%10.