0 &&..." />

How do i recognize 2 digits as separated digits ?

So basically the assignment says i need to get a number 'n' from the user and for all the numbers between 1 to 'n' code the program to print all the numbers divided by 3 without residue && print ONLY the numbers that both (or one) of their digits equal to 5 or less, for example if the user give 22 the programs prints 3,12,21.

thats what ive done by now :

public static void main(String[] args) {

Scanner get = new Scanner(System.in);

int num;

System.out.println("Enter A Random Number: ");

num = get.nextInt();

for (int i=1;i>0 &&...

Read More »

By: StackOverFlow - Thursday, 8 November

Related Posts