- 7
what is the for loop to print EVEN values from 0 to 20 using a for loop:
12 Respostas
+ 11
Guys for everyone who thought it's the developers of this page's problem, it's not, because you have to put a semicolon after 20, the answers are:
;
20;
2
x
+ 5
for(int x=0;x<=20;x+=2){
cout<<x<<endl;
}
solution 2
for(int x=0;x<=21;x+=2){
cout<<x<<endl;
}
+ 3
for (int x = 0 x <= 20 x += ) {
  cout <<  << endl;
When I enter 20 it says I am wrong but I can't see why?
+ 3
for (int x = 0 x <= 20 x += ) {
  cout <<  << endl;
When I enter 20 it says I am wrong but I can't see why?
Because You Forget ";" after 20
for (int x = 0; x <= 20; x +=2 ) {
  cout << x << endl;
+ 2
for(int i = 0; i <= 20; i += 2)
    cout << i << " ";
+ 2
Respuesta correcta:
 for (int x = 0; x < 20; x+=2)
            {
                Console.WriteLine(x);
            }
+ 1
you can use while too for x%2=0 print something like that
+ 1
Even mean increment  2 by 2..
0
int a = 144;
int b = 33;
if (a > 12 
  
 
 b <= 
  
 
) {
  cout << "You rock!" << endl;
}
0
Fill in the blanks to print EVEN values from 0 to 20 using a for loop:
var x = 0;
for (; x <= 20; x += 2) {
   document.write(x); 
}
0
2
0
what is the for loop to print EVEN values from 0 to 20 using a for loop:
20
2



