+ 1

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

I used this to solve case 1: a=6 a+=3 print(a) When I write both cases in the same page, it makes me fail both. I also tried this the first time: a=int(input(6)) b=int(input(3)) c=(a+b) print(c) And it didn't work. It still results in strings and the result is 63 or 639 sometimes.

21st Jan 2022, 4:06 PM
Edvin Caiali
2 Answers
+ 3
In code coaches, just use input() instead if input(6) input(3).......
21st Jan 2022, 4:08 PM
Jayakrishna šŸ‡®šŸ‡³
+ 1
Thanks @JayakrishnašŸ‡®šŸ‡³. That method solved them both.
21st Jan 2022, 4:12 PM
Edvin Caiali