Sign in to follow this  
Followers 0
AnonymousAntiIntelligence

C#

2 posts in this topic

I don't think it's off topic to ask about C#, although I recommend learning C or C++. It seems like everyone prefers to use C, I'm not sure why, but they just like C more than C#. I personally prefer C# but that's only because it's useful in game development with some popular game engines.
while(num < 100) //prevents the loop from going on forever (assuming num eventually surpasses 100)
{
    Console.WriteLine(num);
    num += 1; //short for num = num + 1

}

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0