URI Online Judge |1001
Extremely Basic
Description :
Read 2 variables, named A and B and make the sum of these two variables, assigning its result to the variable X. Print X as shown below. Print endline after the result otherwise you will get “Presentation Error”.
Input:
The input fill will contain 2 integer number .
Output:
Print the letter X (uppercase) with a blank space before and after the equal signal followed by the value of X, according to the following example.
Obs.: don't forget the endline after all.
Samples Input | Samples Output |
10 9 | X = 19 |
-10 4 | X = -6 |
15 -7 | X = 8 |
Answer :
Use this C Programming Languages .
#include
int main()
{
int A,B,sum;
scanf("%d%d",&A,&B);
sum=A+B;
printf("X = %d\n",sum);
return 0;
}