How do I pass the popsicles code coach challenge? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I pass the popsicles code coach challenge?

The popsicles code coach challenge seems a bit confusing,so I was wondering if someone could help me using c#.

20th Mar 2020, 5:58 AM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
2 Answers
+ 5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { int siblings = Convert.ToInt32(Console.ReadLine()); int popsicles = Convert.ToInt32(Console.ReadLine()); if (popsicles % siblings == 0){ Console.Write("give away"); }else{ Console.Write("eat them yourself"); } } } } There you go Happy coding 😊 keep coding 🙏
20th Mar 2020, 6:29 AM
Alfred Juma
Alfred Juma - avatar
+ 2
Please show your code here so that we can help you https://www.sololearn.com/post/75089/?ref=app
20th Mar 2020, 6:03 AM
Gordon
Gordon - avatar