New one with new question :) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

New one with new question :)

I get this question in the first course Somebody wrote code to take two integer inputs and output their product. However, the code results in an error. Task Fix the code to output the product of two integer inputs. Sample Input 3 6 Sample Output 18 i writed this code Print(3*6) this show me this right code but answer must be in another code

7th Oct 2021, 9:21 AM
Raoof Zakarna
6 Answers
+ 3
Raoof Zakarna try this a = int(input()) b = int(input()) print(a*b)
7th Oct 2021, 7:02 PM
Erlénio.RS
Erlénio.RS - avatar
+ 2
You used static numbers, the numbers to be multiplied must be entered by the user, using the input()
7th Oct 2021, 9:33 AM
Erlénio.RS
Erlénio.RS - avatar
+ 1
Thank you now i understand , when you write for me the code first time i think you mean i should write the nummber inside the () 😂 , thank you 👍
7th Oct 2021, 7:05 PM
Raoof Zakarna
0
thank you for you answer i have 5 question in one projekt sa i dont know who i will do i tried to much last i writed a=int(input(3)) b=int(input(6)) print(a*b) but this not right
7th Oct 2021, 6:57 PM
Raoof Zakarna
0
ثثثثثثثثثثثث
4th Jan 2023, 10:26 PM
تنين العرق
تنين العرق - avatar
0
بببببببب
4th Jan 2023, 10:27 PM
تنين العرق
تنين العرق - avatar