Skip to content

Exercise from Java Course on Java Development HyperSkill

Notifications You must be signed in to change notification settings

PeterCerven/Amazing-Numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazing-Numbers

Exercise from Java Course on Java Development HyperSkill

About

The project covers basic operations on integers, as well as with Java collections. A program that indicates the properties of the numbers taken from the input.

Program working

### Supported requests:
- enter a natural number to know its properties;
- enter two natural numbers to obtain the properties of the list:
  * the first parameter represents a starting number;
  * the second parameters show how many consecutive numbers are to be processed;
- two natural numbers and a property to search for;
- two natural numbers and two properties to search for;
- a property preceded by minus must not be present in numbers;
- separate the parameters with one space;
- enter 0 to exit.

### Enter a request: 1 4

               1 is palindromic, spy, square, jumping, happy, odd
               2 is palindromic, spy, jumping, sad, even
               3 is palindromic, spy, sunny, jumping, sad, odd
               4 is palindromic, spy, square, jumping, sad, even

### Enter a request: 12 213 happy sad

The request contains mutually exclusive properties: [HAPPY,SAD]
There are no numbers with these properties.

### Enter a request: 12 5 buzz happy even gapful

             280 is buzz, duck, gapful, happy, even
             700 is buzz, duck, gapful, happy, even
            1092 is buzz, duck, gapful, happy, even
            1274 is buzz, gapful, happy, even
            1330 is buzz, duck, gapful, happy, even

License

About

Exercise from Java Course on Java Development HyperSkill

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages