#include <stdio.h>

int a,b,c=10;

int main() {
    scanf("%d", &a); //a dividendo
    if(a==0) {
        printf("0");
    }
    while(a>0) {
        b=0;
        while(a>=c) {
            a=a-c;
            b=b+1;
        }
        printf("%d", a);
        a=b;
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: