Monday, June 22, 2020

URI Online Judge Solution 1007 - Brain Muscles URI 1007 Solution

Posted By: Naeem - June 22, 2020

Share

& Comment


URI Online Judge Solution 1007 - Brain Muscles URI 1007
URI Online Judge Solution 1007☺ Difference☺ URI Online Judge Solution 1007
Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.

Add caption
URI Online Judge | 1007

Difference


Read four integer values named A, B, C and D. Calculate and print the difference of product A and B by the product of C and D (A * B - C * D).

Input

The input file contains 4 integer values.

Output

Print DIFERENCA (DIFFERENCE in Portuguese) with all the capital letters, according to the following example, with a blank space before and after the equal signal.

Samples Input
Samples Output

5
6
7
8
DIFERENCA = -26

0
0
7
8
DIFERENCA = -56

5
6
-7
8
DIFERENCA = 86


URI Solution 1007  Difference Solution in C:



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





About Naeem

Techism is an online Publication that complies Bizarre, Odd, Strange, Out of box facts about the stuff going around in the world which you may find hard to believe and understand. The Main Purpose of this site is to bring reality with a taste of entertainment

0 comments:

Post a Comment

URI 1010 Solution- Brain Muscles URI 1010 Solution In C

URI Online Judge Solution 1010 - Brain Muscles URI 1010 URI Online Judge Solution 1010☺ Simple Calculate☺ URI Online Judge Solution 101...

Copyright © Brain Muscles™ is a registered trademark.

Designed by Templateism. Hosted on Blogger Platform.