#include <stdio.h>

int main(void) {
    int calc(int n,int k) {
        int i=0;
        while (n++<k) 
            i+=1;
        if ((i==0)&&(k!=(n-1)))
            return calc(k,n-1);
    return i;
    }
    int a=0;
    int b=0;
    scanf("%d", &a);
    printf("\n");
    scanf("%d",&b);
    int result = calc(a,b);
    printf("Valeur : %d\n", result);
}

Embed on website

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