Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
Iam trying to make progam on simple interest on this app's play background but it is not working
17 Antworten
0
What's showing the error?
0
Share Your Code Samriddhi Dhiman 86-07 So That All The Viewers Can Check Your Code.
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
0
Santanu jana it's showing syntax error
0
Samriddhi Dhiman 86-07 I Checked Your Code And Yes It’s Working On Solo-learn Default Compiler.
0
But didn't work when I did
0
Enter Your Input Values Like This-
20000
2
5
0
Ok thank you so much sir
0
It Sounds Alike I Am 50 Years Old Professor.
Don’t Call Me Sir 😂🤣
0
Ok I am sorry
0
So what should I say
0
It’s Okay You Can Call Me Ryan 👍
0
Fine thank you very much Ryan
0
It Was The Least I Could Do But Yes
Glad to help.
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);
}
0
Don't forget the #include<stdio.h> preprocessor
0
What is the error man. Show us the code so we can help you.