WAP in JAVA to input an integer number and count how many prime digits present
in the number
Answers
Answered by
0
Answer:
public class Main {
public static void main(String[] args) {
int count = 0, num = 0003452;
while (num != 0)
// num = num/10
num /= 10;
++count;
}
System.out.println("Number of digits: " + count);
}
}
Output
Number of digits: 4
please mark me as brainliest..
Similar questions