Write a program in Java to accept 100 positive integers (containing three digits or more).Display the digits of each integer indicating whether they are even or odd. Ex. Sample Input: 4756
Answers
Answered by
0
Answer:
Java program to display odd numbers between 1 -100
package com. candidjava. code;
class OddNumber {
public static void main(String args[]) {
System. out. println("The Odd Numbers are:");
for (int i = 1; i <= 100; i++) {
if (i % 2 != 0) {
System. out. print(i + "
Similar questions