Write Java code that uses a for statement to sum the numbersfrom 10 through 25. Make sure the total sum can be displayed in theconsole. and then Create a separate program that uses a do…while loop toprint odd numbers from 3 through 11. Numbers may be negative. im only a beginner so please help me!! Write Java code that uses a for statement to sum the numbersfrom 10 through 25. Make sure the total sum can be displayed in theconsole. and then Create a separate program that uses a do…while loop toprint odd numbers from 3 through 11. Numbers may be negative. im only a beginner so please help me!!
Explanation / Answer
Well, for your first problem we can just write... int sum = 0; for(int x = 10; x