0 votes
119 views
in Discuss by (3.5k points)
edited
Write a php program to find even odd number

1 Answer

0 votes
by (3.5k points)
selected by
 
Best answer
  1. <?php  
  2. $number=1233456;  
  3. if($number%2==0)  
  4. {  
  5.  echo "$number is Even Number";   
  6. }  
  7. else  
  8. {  
  9.  echo "$number is Odd Number";  
  10. }   
  11. ?>  

Related questions

0 votes
1 answer 152 views
asked Jun 11, 2022 in Python by Doubtly (98.9k points)
0 votes
1 answer 125 views
asked Aug 21, 2022 in Discuss by codelikepro (3.5k points)
0 votes
1 answer 100 views
asked Jul 20, 2022 in C programming by Doubtly (98.9k points)
0 votes
1 answer 291 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

535 users

...