#include <stdio.h>
int a,b,c=10; //conversione in base 10
int main() {
scanf("%d", &a);
if(a==0) {
printf("0");
}
while(a>0) {
b=0;
while(a>=c) {
a=a-c;
b++;
}
printf("%d", a);
a=b;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: