About Candy Game

Can someone explain the logic for CodeChef: Practical coding for everyone ??

Below is code solution to it.

#include <iostream>
using namespace std;
typedef long long int ll;
int main()
{	
 ll tc;
  scanf("%lli",&tc);
while(tc--){
ll a,b;
scanf("%lli,%dlli",&a,&b);
printf("%lli.000000\n",a*b);
}	 return 0;
 }

Can you please explain the logic behind it?? @smsubham

Question is answered here.
Can any one Explain this easy Question-Candy Game (Practice icpc) with Solution? - help - CodeChef Discuss