murns
murns
CC#
Created by murns on 3/4/2025 in #help
Question
So I am learning to code C# I have a question. int x = 5; while (x > 0) { Console.Write(x); x--; if (x == 2) { x = 5; } } why would this equal 543543543543543543 opposed to 55555555555555555555555555555 I thought it would be "5555555555" as the console is writing before it minuses the integer
13 replies
CC#
Created by murns on 3/3/2025 in #help
Nested else if | help
Hi, im new to C# and am a bit confused. What is the difference between a if statsment with a nested if-else and a if-elif-else structure?
7 replies