What is even numbers ?
If any number is divide it by 2 or remainder is 0 than this number is even.
What is odd numbers ?
If any number is divide it by 2 or remainder is not equal to 0 than this number is odd.
Step:1 - First declare number variable and it's value.
Step:2 - Check the number is even or odd using if (){} else{}.
Odd or Even.php:
Output:
If any number is divide it by 2 or remainder is 0 than this number is even.
What is odd numbers ?
If any number is divide it by 2 or remainder is not equal to 0 than this number is odd.
Step:1 - First declare number variable and it's value.
Step:2 - Check the number is even or odd using if (){} else{}.
Odd or Even.php:
Output:
0 Comments:
Post a Comment