Write a program to take two integers as input and output their sum. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Write a program to take two integers as input and output their sum.

What's the problem with this code?? https://code.sololearn.com/cMTdlaTcw71h/?ref=app

28th Feb 2021, 4:30 PM
Milon
Milon - avatar
2 Answers
+ 7
a = int(input()) b = int(input()) sum = a + b print( sum) #It's not necessary to add prompt messages in your solutions.
28th Feb 2021, 4:33 PM
Simba
Simba - avatar
+ 2
Thanks
28th Feb 2021, 4:36 PM
Milon
Milon - avatar