#include <stdio.h>

int main() {
    int a,b;
    scanf("%d %d", &a, &b);

    if(a>b){
        printf("%d", a-b);
    }
    else{
        printf("%d", b-a);
    }
    
    return 0;
}

Embed on website

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