Problem Statement :
Write a java program where you have to take a input a integer value from user and print the number of even digits in the given input .
if there is no any even digit , print 0 or else print the number of even digits .
Input : 123456
Output : 3 (as 2,4,6 are the even digits )
Input : 135791
Output : 0 (as there are no even digits )
Kindly Subscribe the channel : Click here
Source Code :
Comments
Post a Comment