hope this helps, i'm a beginner so this might not be the most concise method
Start learning the functions of a computer and really put ur heart into it
I've included my code in the picture below. Best of luck.
A. How many marathons you have run, because it doesn't relate to the job you're applying for.
Answer:
class OddNumber
{
public static void main(String args[])
{
int n = 1000; //Store 1000 in Variable n typed integer
System.out.print("Odd Numbers from 1 to 1000 are:"); // Print headline of output window
for (int i = 1; i <= n; i++) //For loop to go through each number till end
{
if (i % 2 != 0) //check if number is even or odd.Not divisible by 2 without reminder means it is odd number
{
System.out.print(i + " "); //print odd numbers
}
}
}
}