Friday, October 26, 2018

Uri 1007 Solution in C | Difference

/*Before seeing the code solution make sure that you have tried enough. Don’t copy- paste the whole code. Find out the logic. If you face any trouble, just inform me in comment.*/


#include<stdio.h>
main()
{
    int A,B,C,D,DIFERENCA;
    scanf("%d %d %d %d",&A, &B, &C, &D);
    DIFERENCA=(A * B - C * D);
    printf("DIFERENCA = %d\n",DIFERENCA);
    return 0;
}

//Happy_coding

No comments:

Post a Comment