0
Why doesn't works? (C# Begginer)
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Code_Coach_Challenge { class Program { static void Main(string[] args) { //your code goes here int botellas; int personas; int resto; botellas = Convert.ToInt32(Console.ReadLine()); personas = Convert.ToInt32(Console.ReadLine()); resto = botellas % personas; Console.WriteLine(resto); } } }
3 Answers
0
Suggestion:
1. Save your code, and share its link in thread Description instead. Raw text code consumes space in Description, with code bit link you'd have more space to describe the task, in order for viewers to better understand your situation.
https://www.sololearn.com/post/75089/?ref=app
2. If this was a PRO challenge, then provide task details in Description. Non PRO users cannot see PRO challenges.
0
You didnt assign values to the variables when you created them, maybe thats error?
0
Man, C# think, that all int are empty. Just set all int to 0, and trouble out.