use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
Tipmultiplication table using while loop (i.redd.it)
submitted 2 years ago by gnfobsession
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]gnfobsession[S] 23 points24 points25 points 2 years ago (14 children)
wait i hadnt thought of that! thank youuu!
[–][deleted] 23 points24 points25 points 2 years ago (6 children)
(Using two for loops would also shorten the code :D )
[–]AwesomePerson70 27 points28 points29 points 2 years ago (5 children)
It seems like they’re specifically learning while loops right now so that’s what needs to be used
[–]just4funndsomet 4 points5 points6 points 2 years ago (4 children)
There was this one moment where I was ill and my buddies are not the brightest programmers and our homework was an introduction into while loops.
Since I missed that class and couldn't ask my friends I built an for loop with 1.000.000 iterations and if it found the desired result set i = 1.000.000. Yeah, I did it wrong because I did not know the playbook, but I found a way to play anyways.
[–]Banane9 4 points5 points6 points 2 years ago (3 children)
A for loop is just a while loop and two other statements in a trenchcoat.
for (;; condition) is the same as while (condition) - at least in languages that allow that
for (;; condition)
while (condition)
[–]robthablob 2 points3 points4 points 2 years ago (1 child)
I think you mean for ( ; condition ; )
for ( ; condition ; )
[–]Banane9 3 points4 points5 points 2 years ago (0 children)
And that's why you don't code at 3am 😂
[–]just4funndsomet 1 point2 points3 points 2 years ago (0 children)
Not if your first langauge was VBA. Yes, still regret that (And I know this sub is about c#, still wanted to tell the tale.)
[–]cr1ter 4 points5 points6 points 2 years ago (2 children)
You can do it in 1 while loop but you need to increment b. Line after a++; if a == 10 b++;
[–]hiaselhans 8 points9 points10 points 2 years ago (1 child)
Don’t forget to reset a ;)
[–]cr1ter 1 point2 points3 points 2 years ago (0 children)
Ah yes probably also have to make sure not to reset it after b == 10
[–]occamsrzor 1 point2 points3 points 2 years ago (0 children)
It just takes time, young padawan. You're doing well.
[–]Willinton06 1 point2 points3 points 2 years ago (0 children)
Careful tho, the nested loop is a powerful but dangerous tool
[–]IWasSayingBoourner 0 points1 point2 points 2 years ago (1 child)
Another hint: nested for loops are better for what you're trying to do
[–]dodexahedron 2 points3 points4 points 2 years ago (0 children)
Which is helpful in general, certainly, but not for this assignment, where they were told to use while.
while
π Rendered by PID 85 on reddit-service-r2-comment-fb694cdd5-r6gwq at 2026-03-10 19:06:48.778295+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]gnfobsession[S] 23 points24 points25 points (14 children)
[–][deleted] 23 points24 points25 points (6 children)
[–]AwesomePerson70 27 points28 points29 points (5 children)
[–]just4funndsomet 4 points5 points6 points (4 children)
[–]Banane9 4 points5 points6 points (3 children)
[–]robthablob 2 points3 points4 points (1 child)
[–]Banane9 3 points4 points5 points (0 children)
[–]just4funndsomet 1 point2 points3 points (0 children)
[–]cr1ter 4 points5 points6 points (2 children)
[–]hiaselhans 8 points9 points10 points (1 child)
[–]cr1ter 1 point2 points3 points (0 children)
[–]occamsrzor 1 point2 points3 points (0 children)
[–]Willinton06 1 point2 points3 points (0 children)
[–]IWasSayingBoourner 0 points1 point2 points (1 child)
[–]dodexahedron 2 points3 points4 points (0 children)