• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 5

Can anyone explain about loops? Why the answer is 5 and how loops are working?

Int y=0; for(int x=0;x<9;x++) { x++; y++; } Console.Write(y);

c#
22nd Nov 2019, 2:29 PM
Gouse Basha
Gouse Basha - avatar
1 Answer
+ 6
Gouse Basha Let read this thread https://www.sololearn.com/Discuss/1849272/?ref=app
22nd Nov 2019, 2:34 PM
GAWEN STEASY
GAWEN STEASY - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Functions in python
2 Votes
Html 5 document question
1 Votes
š™µš™øš™½š™³ ššƒš™·š™“ š™øš™½š™æšš„ššƒ š™¾š™µ ššƒš™·š™“ š™æššš™¾š™¶ššš™°š™¼
1 Votes
Python
0 Votes
Can someone explain inline and block elements please
0 Votes
Actual Artificial Intelligence
0 Votes
Need friends
0 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
0 Votes
Is this realistic enough?
1 Votes