I need help with a lab I'm doing. In this lab you have to show the number of odd digits a number has, for example the number 4135 would have three odd digits. I've already done a lab where it tells you if a number is odd or even but I don't know how to change it and make it to do what it needs to. This is my code for the odd or even lab: /** * It reads and number and determines if that number is even or add. */ import java.util.Scanner; public class Odd_or_Even { public static …

Member Avatar
Member Avatar
+0 forum 1

The End.