© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•8mo ago•
93 replies
Jexs(ping me)

How do i get this to work?

              //int x;
                   Console.WriteLine("Please Enter a number");
            int Entry = Console.ReadLine();
            //string Entry = int.TryParse(Console.ReadLine(), out x);(what ive tired)

            for (int i = x; i < 10; i++)
            {
                Console.WriteLine($"Go up by {Entry}");
            }}
              //int x;
                   Console.WriteLine("Please Enter a number");
            int Entry = Console.ReadLine();
            //string Entry = int.TryParse(Console.ReadLine(), out x);(what ive tired)

            for (int i = x; i < 10; i++)
            {
                Console.WriteLine($"Go up by {Entry}");
            }}
error: Cannot implicitly convert type 'bool' to 'string'
i clicked on the error and it told me to go here
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0029?f1url=%3FappId%3Droslyn%26k%3Dk(CS0029)
here i see are only ints being converted to long is what im doing even possible?
Compiler Error CS0029 - C# reference
Compiler Error CS0029
Compiler Error CS0029 - C# reference
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
Next page

Similar Threads

How do I get visual studio to suggest code like this ?
C#CC# / help
2y ago
✅ How do i get rid of this blue text
C#CC# / help
4mo ago
how do I disable this
C#CC# / help
2y ago
✅ how do i fix this?
C#CC# / help
2y ago