#include
int main(){
int i;
for(i=2;i<=100;i=i+2){
printf("%d\n",i);
}
}
JAVA
You need a code that can run to print even numbers between 10 and 100 using the qbasic command.
find even number in array
sum = 0; for (int i = 12; i
#includevoid main(){int num,i;printf("\n Enter number upto which even numbers must be displayed \t");scanf("%d",&num);printf("\n Even numbers less than %d are \n",num);for(i=2;i
You can use int i; for (i = 10; i <= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.
#include using std::cout;using std::endl;int main(){cout
for (int i = 2; i < 10; i ++) printf("%d\n", i); You did say even and odd numbers between 1 and 10. That's allnumbers between 1 and 10.
Here is a simple program that will list all the even numbers between 1 and 50: public class EvenNumbers { public static void main(String[] args) { for(int i=1; i<=50; i++) { if(i%2 ==0) { System.out.println(i); } } } }
5598,6002,6004,6006,6008,
There are four even numbers between one and nine. the four even numbers are 2,4,6 and 8.
There are 49 even numbers between 1 and 99.
How many even numbers are there between 165 and 345
There are 18 even numbers between 1 and 37
what are the even square numbers between 10 and 70
The even numbers between 23 and 27 are 24 , 26.
please somebody should help me answer this question..I have a project on it even! It seems almost impossible at the moment.