Save up to 80 % on our C and C++ e-learning courses. Only this week!
Get up to 50 % extra points for free! More info
discount 50
Avatar
Paul Michaels
Member
Avatar
Paul Michaels:11/11/2016 13:56

I get that for loops run through a set amount of iterations, but mine's not working. What am I doing wrong?

for (int i; i < 3; i++)
{
        Console.WriteLine("Knock");
}
Console.WriteLine("Penny!");
Console.ReadKey();
                }
        }
}
 
Reply
11/11/2016 13:56
Avatar
Replies to Paul Michaels
Matthias Quintero:11/11/2016 14:12

You never initialized the iteration counter, so the loop starting point is undefined.

 
Up Reply
11/11/2016 14:12
Avatar
Paul Michaels
Member
Avatar
Paul Michaels:11/11/2016 14:13

Thank you! It works now

 
Up Reply
11/11/2016 14:13
Avatar
Samuel Jackson:12/22/2021 5:37

This is the first time I visit here and I found so much interesting information in your post, thank you.

 
Up Reply
12/22/2021 5:37
Avatar
Tracy Duff
Member
Avatar
Tracy Duff:28. May 18:22

Good evening guys! Our professional essay writing service https://expertpaperwriter.com/…sors-review/ uses only the most qualified authors and editors, which ensures we will always provide you with high-quality support. With hundreds of experts to choose from, we can support you in all of the following subject areas through our professional essay writer and much more

 
Up Reply
28. May 18:22
Avatar
Berzencexx
Member
Avatar
Berzencexx:22. June 10:50

Upgrading the level of customer satisfaction is the goal of this service. The cv writing service uk invests much time in understanding the requirement to provide the best results. The experts on the site enable a newbie to choose the best writer. By discussing the project earlier

 
Up Reply
22. June 10:50
Avatar
Michael Gor
Member
Avatar
Michael Gor:2. September 13:36

Thank you for your help. In turn, I would like to recommend a good website.
Logitech F310 Driver and Software
The Logitech F310 Gamepad is a gamepad with console-style buttons and a USB connection that works with both PCs and PlayStations. Its features make it easy
to use and perfect for competitive gaming on a PC. This USB controller comes with a USB cable that can reach 1.8 meters.
The driver is available for both 32-bit and 64-bit operating systems and can be downloaded from the manufacturer's website. To install the driver, connect your gamepad and follow the instructions. You can also choose to use an automatic driver installer to install the software. If you do not feel confident installing the driver, you can always do it manually.

 
Up Reply
2. September 13:36
To maintain the quality of discussion, we only allow registered members to comment. Sign in. If you're new, Sign up, it's free.

7 messages from 7 displayed.