+ 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#.
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 đ
+ 2
Please show your code here so that we can help you
https://www.sololearn.com/post/75089/?ref=app