difference

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
262 B
21
Indexable
Never
#include<stdio.h>
int main()
{
    int a,b,temp;
    scanf("%d %d",&a,&b);
    if (a<b)
    {
        temp=b;
        b=a;
        a=temp;
        printf("%d\n",a-b);

    }
    else
    {
        printf("%d\n",a-b);

    }
    return 0;

}