#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);
// }
printf("%d", (a>b) ? (a-b) : (b-a));
return 0;
}
// 삼항연산자
// (조건) ? (참) : (거짓)
// if(조건){
// (참)
// }else{
// (거짓)
// }
To embed this project on your website, copy the following code and paste it into your website's HTML: