Back

Error or Bug??

Created 4 mons ago
81 Views
2 Comments
SHIVAKUMARWhyVue
@SHIVAKUMARWhyVue
SHIVAKUMARWhyVue
@SHIVAKUMARWhyVueProfile is locked. Login
  1. Write a program to get two integer inputs, assign them to variables, perform Addition, Multiplication, and Division on the two inputs, and print the results on each line.

    Input:

    Two integers num1 and num2 (-10^9 ≤ num1, num2 ≤ 10^9).

    Output:

    Print the results of Addition, Multiplication, and Division on each line.

    Sample Input:

    10
    20

    Sample Output:

    30
    200
    0.5

My Code:

a= int(input())

b= int(input())

print(a+b)

print(a-b)

print(a/b)

PROBLEM: in other Compilers it was running successfully . but here , it not! why?

Output:
>>> Traceback (most recent call last):
  File "script-3.6.0.py", line 1, in 
    a= int(input())
EOFError: EOF when reading a line


Runtime Error (NZEC)
Comments (2)
Please login to comment.