0
Issue with one of the c++ questions
Iâm having a problem with one of the questions thatâs asking to create a for loop that starts at 0 and ends at 20 that output the even numbers. The problem is that when I go to input x <= 20, it implies that I need to enter a 3rd character in that 20 position. Am I doing it wrong or is the an issue.
4 Answers
+ 5
for(int x=0; x<=20;x+=2)
{
printf("%d",x);
}
are you talking about this quiz in C++ language
+ 3
Can you please link the code
+ 2
~swim~ is right. I forgot about the semicolon. I was too focused on entering a number and forgot to put it there. thank you very much mohit and swim i got it now.