New course! Every coder should learn Generative AI!
Try a free lesson- 1
Write program to take two integers as input and output their sum.
Sample Input : 6 & 3 Sample Output : 9
10 Answers
+ 1
x = int(input())
y = int(input())
z = x + y
print(z)
You can write anything in parentheses, but it won't be assigned to a variable
What you write in parentheses can help a person understand what needs to be entered
+ 7
Infinity Star
a = int(input ())
b = int(input ())
now do rest
+ 5
Look what I Am AJ ! did. Find the difference.
+ 3
Infinity Star
We are not here to write full code for you because you will never learn.
We can just give you hint.
+ 2
๐๐
0
My attempt is as following.. ๐
Language is Python3
x = int(input('6'))
y = int(input('3'))
z = (x+y)
print(z)
Result not found.
0
But that is incomplete
0
leave parenthesis input blank. You should type input in terminal not in your code.
x = int(input())
just like this.
0
x,y = map(int, input().split())
print (x+y)