+ 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)
9 Answers
+ 1
Randomocity Jayakrishna🇮🇳 now I got it. thank you for helping me 😃
+ 1
Randomocity You too have a good day!😊
+ 1
Add the input in separate line ...
and u will get no error
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..
0
I'm not getting a error. what error did you get?
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 ?
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
0
np 😊 have a good day
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..