Unable to find if statement code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Unable to find if statement code

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.

6th Sep 2020, 1:09 PM
Krits1703
Krits1703 - avatar
4 Answers
+ 9
Krits1703 If you need help, you can post the code you're struggling with. Try to search for similar questions or answers before posting and include relevant tags!  • https://www.sololearn.com/post/75089/?ref=app
6th Sep 2020, 6:57 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 4
The best would be if you could post your code in playground and then link it here, and also give us some more details what your problem is. Thanks!
6th Sep 2020, 2:53 PM
Lothar
Lothar - avatar
+ 3
What language and have you tried it out?
6th Sep 2020, 1:16 PM
Jnn
Jnn - avatar
0
https://www.sololearn.com/coach/127?ref=app Yes I tried it. I got the problem but unable to write the code.
6th Sep 2020, 7:55 PM
Krits1703
Krits1703 - avatar