0

Problem in C#

I have a question in C# and since 3 days I cant solve it. Can some one help? It's Fill in the blanks to print the EVEN values from 0 to 100 using a for loop: for (int x = 0; x < 100; x+= (the problem) ) { Console.WriteLine(x); }

17th Nov 2022, 6:35 PM
Vyce
Vyce - avatar
2 Answers
+ 4
After x = 0, next even number is x = 2 , How you will get it? by adding 2 x += 2
17th Nov 2022, 6:44 PM
Jayakrishna 🇼🇳
+ 1
Thank you it worked!
17th Nov 2022, 6:46 PM
Vyce
Vyce - avatar