Is there any programming language/script who won’t allow increasing the counter for an FOR loop inside the loop?
For example:
for(int i = 0; i < 10; i++)
{
i++;
print i
}
Output: 1 3 5 7 8 9
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure I fully understand your question but,
in python :
You will return the same result as :
i.e :