URI Online Judge | 1001 Extremely Basic Solve with source code

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 end line after all.
SOLVE

                 A = float(input())
                B = float(input())
                MEDIA = (A*3.5+B*7.5)/(3.5+7.5)
                print("MEDIA = %.5f"%MEDIA)

Comments

  1. I am bookmarking it to read it over again after work. It seems like a very interesting topic to write about. Your posts are really helpful to me. Thanks for your wonderful post. I am very happy to read your post.
    www.result-jobs.com

    ReplyDelete

Post a Comment

Popular posts from this blog

How to solve an 8 puzzle problem using A* Algorithm in python

Timus Online Judge 1000. A+B Problem question and SOLVE with sudo code

URI Online Judge | 1013 The Greatest Solve with source code