+ 2

Can anybody explain how to write the given link's code.

https://www.sololearn.com/coach/127?ref=app

8th Sep 2020, 10:34 AM
Krits1703
Krits1703 - avatar
4 RĂ©ponses
+ 1
1st input is your total money. 2nd input is the price of an ice cream. You need to output your remaining money after buying 10 friends an ice cream each. I've simplified the question and now you have to code it yourself.
8th Sep 2020, 10:45 AM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż - avatar
+ 1
Evan Flair if Statements +10 XP Let's imagine you want to buy an ice-cream for 10 of your friends. Write a program that will take the money you have and the price of one ice-cream, and will output the remaining money only if you can buy that ice-cream for your all 10 friends. Sample Input 80 7 Sample Output 10 Explanation 7*10 = 70. 10 is remaining money (80-70).
8th Sep 2020, 10:47 AM
Krits1703
Krits1703 - avatar
+ 1
Krits1703 you're said total algarithm, then what is difficulty in coding.. It is about just basic, try and post your tried code if you struck.. Or complete the score then give attempt..
8th Sep 2020, 1:42 PM
Jayakrishna 🇼🇳