#include<iostream>
int main()
{
for(int num=2; num<=50; i+=2)
std::cout << num << std::endl;
return(0);
}
for (int i=1; i<20; i+=2) printf ("%d\n", i);
By learning how to program on C+.
Yes, an even number plus an even number is always even. Also, and odd number plus an odd number is always even.
It is an even number.
Initialise an unsigned integer to zero. As each number is input, increment the running total accordingly. When all numbers are input, display the total.
An odd number plus an even number will always be an odd number.
It depends on what program you design really
bghjg
how to write a program that counts automorphic number from 1 to 999
An even number.
#include <iostream> int main() { int num; std::cout << "Enter a number: "; std::cin >> num; if(num % 2 == 0) { std::cout << "Number is even"; } else { std::cout << "Number is odd"; } return 0; }
You'll get an odd number when adding two evens (which will be even) and an odd number.