#include <stdio.h>

int x,y,z=10;

int main() {
    scanf("%d", &x);
    if(x==0) {
        printf("0");
    }
    while(x>0) {
        y=0;
        while(x>=z) {
            x=x-z;
            y++;
        }
        printf("%d", x);
        x=y;
    }
}

Embed on website

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