8:18 pm - Thursday April 25, 2019

Tag Archives: count odd

Java example program to count number of odd numbers between 1 to 100

/* Program for odd numbers*/ /** *@author:Candidjava.com *@Description: To check a given number is Odd */ public class Odd { public static void main(String[] args) { int count = 0; int n; for (int i = 1; i <= 100; i++)...