#include <stdio.h>

int main() {
    int a,b,res;
    scanf("%d %d",&a,&b);
    // a가 b보다 크면 a-b 아니면 b-a
    res = a>b ? a-b : b-a;
    printf("%d",res);
    return 0;
}

Embed on website

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