0

C# module 2: break and continue [Solved]

I have tried everything with this module, including the Hint Solution even though it makes no sense to me, and I still can't pass this dang thing. Help???

12th Nov 2022, 5:45 AM
Sierra Mulligan
Sierra Mulligan - avatar
5 Respuestas
+ 1
Remove last curly brace
12th Nov 2022, 6:37 AM
SoloProg
SoloProg - avatar
+ 1
Please attempt the code?
12th Nov 2022, 5:59 AM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 1
Omg 🙄 thanks. I swear I tried that but whatever it worked.
12th Nov 2022, 6:46 AM
Sierra Mulligan
Sierra Mulligan - avatar
0
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 maxBid = Convert.ToInt32(Console.ReadLine()); int bid = int.Parse(Console.ReadLine()); while (bid < maxBid) { bid = int.Parse(Console.ReadLine()); } Console.WriteLine("Sold: " + bid); } } } } That's the Hint code
12th Nov 2022, 6:01 AM
Sierra Mulligan
Sierra Mulligan - avatar
- 1
Hi
12th Nov 2022, 1:10 PM
MD Atikur
MD Atikur - avatar