+ 2
C# Auction problem
https://code.sololearn.com/cIsjhaYEXKfs/?ref=app Any pointers in the right direction would be appreciated.
8 Answers
+ 1
while(true) not works here on Playground. The input for data here has to be finally and at the beginning before calculate.
+ 3
This is how it works:
while(true)
{
int bid = Convert.ToInt32(Console.ReadLine());
if(bid >= maxBid)
{
Console.WriteLine("Sold: {0}", bid);
break;
}
}
+ 1
it doesnât work on the code coach either?
+ 1
It also donât work on the code coach.
+ 1
Thank you for letting me know, it is frustrating that it is included if it cannot be completed! I have spent hours trying to figure out what Iâm doing wrong. From reading the code, do you know if it would be correct? Or could you inform me of how to write it correctly? I appreciate your help.
+ 1
I have figured this out and have updated the code, it did work in code coach.
0
https://www.sololearn.com/learn/CSharp/2585/
Just use either the Readline Method multiple times or one line with a separators and split ...
- 3
Can i get your number here