My issue
HOW TO SOLVE
My code
#include <stdio.h>
int main(void)
{
int E;
int K;
// your code goes here
return 0;
}
Problem Link: FODCHAIN Problem - CodeChef
HOW TO SOLVE
#include <stdio.h>
int main(void)
{
int E;
int K;
// your code goes here
return 0;
}
Problem Link: FODCHAIN Problem - CodeChef
@klu2300040086
Plzz refer the following solution for better understanding of the logic and implementation .
#include <stdio.h>
int main(void) {
// your code goes here
int t;scanf("%d",&t);
while(t--)
{
int e,k;
scanf("%d%d",&e,&k);
int x=0,c=0;
while(e!=0)
{
x=e/k;
e=e/k;
c++;
}
printf("%d\n",c);
}
}