+ 2
Can anybody explain how to write the given link's code.
3 Respostas
+ 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.
+ 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).
+ 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..