+ 5

Who no output?

simple interest program https://code.sololearn.com/cn0hejm5U4Bd/?ref=app

24th Oct 2018, 12:34 AM
Abhay
Abhay - avatar
3 Answers
+ 3
Check scanf in your code: #include <stdio.h> int main() { int p,r,t; float s; printf("enter principal,rate and time:"); scanf("%d %d %d", &p, &r, &t); s=(p*r*t)/100; printf("simple interest=%f",s); return 0; }
24th Oct 2018, 12:48 AM
Vashishtha Upadhyay
Vashishtha Upadhyay - avatar
+ 3
oh... thks ,lol
24th Oct 2018, 7:55 PM
Abhay
Abhay - avatar
0
i now
25th Oct 2018, 5:38 PM
Aaron Haxhillari
Aaron Haxhillari - avatar