+ 12
Challenge ::: Jimmy's Phone Call
Description :- Jimmy has to talk to his friends. But he don't know for how many minute he can talk. Task:- You have write a program to calculate how many minute Jimmy can talk if he has (s) amount of balance in his phone. First minute of call cost (min1) Rupees(You can say anything Dollars, as you like for currency unit) and next 9 minutes charges a constant charge of Min2 per minute and after that each minute cost Min3. So you have to calculate.How much Minute Jimmy can talk. Sample Input:- S=20,Min1=3,Min2=1,Min3=2. S=2,Min1=2,Min2=5,Min3=6. Output:- Jimmy can talk for 14 Minutes. Jimmy can talk for 1 Minute. Let's help Jimmy. :)
8 Answers
+ 8
https://code.sololearn.com/c38rsbfKMRmb/?ref=app
+ 7
@Akash Pal Thanx. I fixed my code.
+ 7
Ding Dong..!..Hey Jimmy..!! Who's there..!?... It's Python..đđđ
https://code.sololearn.com/cAdbWasrseDJ/?ref=app
+ 5
here's my try
https://code.sololearn.com/c5YAoOO0xb7L/?ref=app
+ 5
@int24h please update your code please. When I input
S=15,min1=3,min2=2,min3=2
The output should be 7 but in your code it outputs 6, which is wrong.So please update it.
Edited on 01/02/2018
So you fixed it. Great.
0
Thanks to all
Please help me to be learned c++
programming