I am trying to find the amount here.
Input
The first line of input contains an integer M, the number of coins in bank.
The second line of input contains M integers: coin1, coin2... coinN. coini represents ith coin.
Output
Print smallest possible amount of cash that you will not be able to pay in super market.
Code:
int solution(int count_coin, int coin[count_coin])
{
float coin1=0.50,total=0.0;
int ncoins;
printf("Number of 50 coins : ");
scanf("%d",&ncoins);
total += (ncoins * coin1);
printf("** %.2f **",total);
return;
}