import java.util.;
import java.io.;
public class Main {
public static void main(String args[]) {
// Your Code Here
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int b = scn.nextInt();
int ans = 0;
int power = 1;
while(n>0){
int dig = n%b;
n = n/b;
ans += dig * power;
power = power * 10;
}
System.out.println(ans);
}
}
my this code is showing error in cb compiler but it’s working fine on vs code… please tell what’s wrong???