ye only i want it to display all the odd numbers or even numbers depending on the value i enter
Type: Posts; User: JonoScho
ye only i want it to display all the odd numbers or even numbers depending on the value i enter
thats got me one step further but it will now print the number the amount of times of the integer e.g. it prints 5, 5 times
import java.util.*;
public class Test
{
public static void...
Basically it takes in the integer then only returns the first odd or even number i want it to display all the odd and even numbers for example:
Int 10
odd number is 1
even number is 2
odd number...
Hey guys i'm new to java and im trying to teach myself java to help with my university course. Im trying to create a program that takes in a integer and returns the odd and even values upto that...