JAVA PROGRAM TO CALCULATE THE SUM OF ODD NUMBERS
Numbers that are divisible by 2 are called Even numbers(ending with 0,2,4,6,8), while numbers that are not divisible by 2 are called odd numbers(which are ending with 1,3,5,7,9) Example: Input: 5 Output: Sum of Odd Numbers present from number 1 to 5 =1+3+5=9 Sum of Even Numbers present from
JAVA PROGRAM TO CALCULATE THE SUM OF ODD NUMBERS Read More »