> Java programing help please?

Java programing help please?

Posted at: 2014-12-18 
I have to creat a java program that can tell me the number of odd numbers between 1 and 1 million. i do not need to see the numbers i just need to have the program be able to tell me how many numbers there are. i need to also be able to change the 1 million to something else and still be able to get a answer, of course not the same answer as 1 to 1 million.

im officialy stuck, ive been doing this now for 8 hours and cant take it anymore, im new to programming and after 8 hours ive decided to ask for help :/