+ 1

I'm a beginner . How to solve this? When I code this it shows error

P = float(input("Enter the principal amount : ")) N = float(input("Enter the number of years : ")) R = float (input("Enter the rate of interest: ")) SI = (P * N + R) /100 print("Simple Interest : ",SI)

9th Aug 2020, 10:07 PM
Anonymous
Anonymous - avatar
9 Answers
+ 1
Randomocity Jayakrishna🇮🇳 now I got it. thank you for helping me 😃
9th Aug 2020, 10:39 PM
Anonymous
Anonymous - avatar
+ 1
Randomocity You too have a good day!😊
9th Aug 2020, 10:49 PM
Anonymous
Anonymous - avatar
+ 1
Add the input in separate line ... and u will get no error
11th Aug 2020, 6:45 AM
Nickson Osiemo
Nickson Osiemo - avatar
0
#No error for me.... May be problem in giving input? Input this way : 200 (enter) 2. (enter) 1.5 (submit) May be you mean wrong output? SI formula (P*N*R )/ 100 Edit: @Hello In that pop up... From the | blinking as already mentioned examples..
9th Aug 2020, 10:19 PM
Jayakrishna 🇮🇳
0
I'm not getting a error. what error did you get?
9th Aug 2020, 10:19 PM
Randomocity
Randomocity - avatar
0
Jayakrishna🇮🇳 I tried this again on 'code playground' it showed me 'looks like your program needs input' . May I know where can I put input ?
9th Aug 2020, 10:37 PM
Anonymous
Anonymous - avatar
0
in that box that pops up. with more then one input function you need to put the input like this: 10000 5 0.05 on separate lines
9th Aug 2020, 10:37 PM
Randomocity
Randomocity - avatar
0
np 😊 have a good day
9th Aug 2020, 10:44 PM
Randomocity
Randomocity - avatar
0
Hello [ and just telling, here you need to give all required inputs at begin line by line... Look at SI farmulae again...] You're welcome..
9th Aug 2020, 10:48 PM
Jayakrishna 🇮🇳