Saturday, June 20, 2020

URI 1001 SOLUTION in C language- Extremely Basic

Posted By: Naeem - June 20, 2020

Share

& Comment

URI Online Judge Solution 1001- Brain Muscles URI 1001

URI Online Judge Solution 1001 ☺ Extremely Basic☺ URI Online Judge Solution 1001
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.

URI 1001 SOLUTION Extremely Basic
Add caption

URI 1001 Extremely Basic

URI Online Judge | 1001
Extremely Basic uri 1001



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 file will contain 2 integer numbers.

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

URI Solution 1001 Extremely Basic in C:


#include <stdio.h>
 int main()
{
  int A,B,X;
  scanf("%d %d",&A,&B);
  X= A+B;
  printf("X = %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.