Iam trying to make progam on simple interest on this app's play background but it is not working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Iam trying to make progam on simple interest on this app's play background but it is not working

22nd Jun 2020, 4:42 AM
Samriddhi Dhiman 86-07
Samriddhi Dhiman 86-07 - avatar
17 Answers
0
What's showing the error?
22nd Jun 2020, 4:49 AM
Santanu Jana
Santanu Jana - avatar
0
Share Your Code Samriddhi Dhiman 86-07 So That All The Viewers Can Check Your Code.
22nd Jun 2020, 5:17 AM
Rahul Saxena
Rahul Saxena - avatar
0
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 : {}". format(SI)) I wrote this
22nd Jun 2020, 11:14 AM
Samriddhi Dhiman 86-07
Samriddhi Dhiman 86-07 - avatar
0
Santanu jana it's showing syntax error
22nd Jun 2020, 11:17 AM
Samriddhi Dhiman 86-07
Samriddhi Dhiman 86-07 - avatar
0
Samriddhi Dhiman 86-07 I Checked Your Code And Yes It’s Working On Solo-learn Default Compiler.
22nd Jun 2020, 11:25 AM
Rahul Saxena
Rahul Saxena - avatar
0
But didn't work when I did
22nd Jun 2020, 11:35 AM
Samriddhi Dhiman 86-07
Samriddhi Dhiman 86-07 - avatar
0
Enter Your Input Values Like This- 20000 2 5
22nd Jun 2020, 11:38 AM
Rahul Saxena
Rahul Saxena - avatar
0
Ok thank you so much sir
22nd Jun 2020, 11:52 AM
Samriddhi Dhiman 86-07
Samriddhi Dhiman 86-07 - avatar
0
It Sounds Alike I Am 50 Years Old Professor. Don’t Call Me Sir 😂🤣
22nd Jun 2020, 12:00 PM
Rahul Saxena
Rahul Saxena - avatar
0
Ok I am sorry
22nd Jun 2020, 12:11 PM
Samriddhi Dhiman 86-07
Samriddhi Dhiman 86-07 - avatar
0
So what should I say
22nd Jun 2020, 12:11 PM
Samriddhi Dhiman 86-07
Samriddhi Dhiman 86-07 - avatar
0
It’s Okay You Can Call Me Ryan 👍
22nd Jun 2020, 12:22 PM
Rahul Saxena
Rahul Saxena - avatar
0
Fine thank you very much Ryan
22nd Jun 2020, 12:30 PM
Samriddhi Dhiman 86-07
Samriddhi Dhiman 86-07 - avatar
0
It Was The Least I Could Do But Yes Glad to help.
22nd Jun 2020, 12:54 PM
Rahul Saxena
Rahul Saxena - avatar
0
If you want you can refer to this code in c main() { float p,r,t,simpleInterest; printf("Enter Pricipal\n"); scanf("%f",&p); printf("Enter Rate in percentage \n"); scanf("%f",&r); printf("Enter Time in years(decimals)\n"); scanf("%f",&t); simpleInterest=(float)(p*r*t)/100.0; printf("Simple Interest is %f\n",simpleInterest); }
22nd Jun 2020, 3:54 PM
DragoCoder
DragoCoder - avatar
0
Don't forget the #include<stdio.h> preprocessor
22nd Jun 2020, 3:55 PM
DragoCoder
DragoCoder - avatar
0
What is the error man. Show us the code so we can help you.
23rd Jun 2020, 11:13 AM
Naveed
Naveed - avatar