dsJava coding examples for beginners This is a Java Program to Calculate the Sum of Odd & Even Numbers. Enter the number of…byJohn