I need the program that can display this number
4
12
44
444
5555
66666
first we write start and then read number and after that check the number is totaly divide by 2 or not if number is totally divide by 2 then number is even else number is odd.
To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.
printf(\n "ENTER THE NUMBER\t"); scanf{"%d",&a); while(a!=0); { r=a%2; if(r==0) printf("\n\n THE NUMBER IS EVEN \t"); else printf("\n\n THE NUMBER IS ODD \t"); printf ("\n ENTER THE NUMBER \t"); scanf("%d",&a); } getch(); }
echo "Program to check even or odd number"echo "Enter a number"read na=`expr $n % 2`if [ $a -eq 0 ] ; then #Semicolon is most important for Executing ifelse statementsecho "It is an even number"elseecho "It is an odd number"fi
It should not be even (except for 2), and must not be dividable with any odd number between 3 and its square-root.
Type your answer here... i think we should first enter 1 number then check it
first we write start and then read number and after that check the number is totaly divide by 2 or not if number is totally divide by 2 then number is even else number is odd.
To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.
printf(\n "ENTER THE NUMBER\t"); scanf{"%d",&a); while(a!=0); { r=a%2; if(r==0) printf("\n\n THE NUMBER IS EVEN \t"); else printf("\n\n THE NUMBER IS ODD \t"); printf ("\n ENTER THE NUMBER \t"); scanf("%d",&a); } getch(); }
The sign of a rational number does not depend on whether it is odd or even.
If you add, subtract, or multiply two even numbers, you will get an even number. If you divide an even number by another even number, you may get an even number, an odd number, or even a fraction.
A number is even when you can divide it by 2. Ex: 44/2=22 (even) 18436/2=8218 (even) 165/2=82.5 (odd)
whenever you add an even number the answer will be the same (odd/even) as the other number
If it is even
An even number can be divided by 2 evenly. An odd number will have a remainder of 1 when divided by 2.
An even number can be divided by 2 evenly. An odd number will have a remainder of 1 when divided by 2.
If the factorization includes the number 2, it's even. If not, it's odd.