Hi I am new to codechef and competitive programming today i was solving this problem http://www.codechef.com/problems/SPCANDY and i submitted my code but i am getting SIGFPE runtime error i searched everywhere, i am not diving by zero but still this problem persists someone please help me to resolve this i am losing confidence
here is my code
#include<stdio.h>
int main(void)
{
int one,two,n,k,t;
scanf("%d",&t);
while(t-- & k!=0)
{
scanf("%d %d",&n,&k);
one=n/k;
two=n%k;
printf("\n %d \t %d ",one,two );
}
return 0;
}