© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•11mo ago•
6 replies
Jiraknight3

Discrepancy between the console result and the expected result.

Good evening,
I’m really sorry for the inconvenience, especially since I’m sure it’s a rookie mistake.
I have a code, which is executed from a given .txt file which are the following:
5
4.1
11
5
3.2
4.3
0.4
0.0
3.1
And I’m supposed to get this;
3.1
3.2
4.3
3.3
2.3
1.3
0.4
0.3
0.2
0.1
0.0
5
But I don’t get any of this, but I read my code again, and I don’t understand where the problem is. (Also, since there is a console result, I can’t access the debug option).
message.txt30.09KB
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ HTTP code not returning expected result.
C#CC# / help
4y ago
The result won't be shown in console
C#CC# / help
3y ago
Communicating between a console app and a hosted service?
C#CC# / help
4y ago
Diff between the Ilist and List
C#CC# / help
4y ago