# 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 &&...

By: StackOverFlow - Thursday, 8 November

# Related Posts

- Older News
- Nesting if statements no strings StackOverFlow (Yesterday) - I am doing a Palindrome number sequence. I've got the math set up, but I'm having trouble nesting my if statements only showing one answer. I've attempted to remove the...
- How to fix my code to crack both letters, numbers, and special character passwords StackOverFlow (2 days ago) - I'm doing a science project where I set up a program that cracks a code and shows how long the computer took to find it, but it only works for...
- Removes the last two digits of a positive integer base 10 number that is greater than 99 in java StackOverFlow (2 days ago) - My homework question is :Removes the last two digits of a positive integer base 10 number that is greater than 99* @param n* a positive integer number greater than 99*...
- Algorithm to retrieve the records in the linked list manner StackOverFlow (3 days ago) - I have a MYSQL db with following datacol1 col21234 70568546854 22613351335 20189998999 281281219000 80028128From the above, I have to read first record and get col2 and get last 4 digits...