// SUM OF NATURAL ODD NUMBERS
class ssvsumnat
{
public static void main(String args[])
{
int num;
int sum=0;
System.out.println("\n\n\n\t\t'''SUM OF NATURAL ODD NUMBERS 501 to 599'''");
for(int i=501;i<600;i++)
{
if ((i % 2) == 0);
sum = sum + i;
} // end of class
System.out.println("\n\n\tSum of odd numbers between 501 to 599 = " + sum);
} // end of main function
} // end of classIn this program, easy to understand to calculate sum of natural Odd numbers using Java Program
