answersLogoWhite

0

#include<iostream>

int main()

{

for(int num=2; num<=50; i+=2)

std::cout << num << std::endl;

return(0);

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you make a program that display odd number from one to twenty in c plus plus?

for (int i=1; i&lt;20; i+=2) printf ("%d\n", i);


How do you write a C plus plus program that will display the first 10 positive prime numbers?

By learning how to program on C+.


Is an even number plus an even number always even?

Yes, an even number plus an even number is always even. Also, and odd number plus an odd number is always even.


What is an even number plus an even number?

It is an even number.


What is the program to find sum of n natural numbers in c plus plus?

Initialise an unsigned integer to zero. As each number is input, increment the running total accordingly. When all numbers are input, display the total.


What does odd plus even equal?

An odd number plus an even number will always be an odd number.


How do you display stars in c plus plus using the if else structure and a for loop and you use void main?

It depends on what program you design really


C plus plus program to print number patterns?

bghjg


A program c plus plus on automorphic numbers or not?

how to write a program that counts automorphic number from 1 to 999


What is an even number plus an even number equal to?

An even number.


Even or odd in c plus plus program?

#include &lt;iostream&gt; int main() { int num; std::cout &lt;&lt; "Enter a number: "; std::cin &gt;&gt; num; if(num % 2 == 0) { std::cout &lt;&lt; "Number is even"; } else { std::cout &lt;&lt; "Number is odd"; } return 0; }


What is an even plus an even plus an odd?

You'll get an odd number when adding two evens (which will be even) and an odd number.