Say 'use it' or 'use it' is easy.

Now test your creativity Javeana and invent your own way to solve the following problems, but remember to use:

to exercise your learning.

**0**. Write a Java program that receives 'n' numbers the user, and receives the number 'n' too, and determine which of these numbers is the smallest.

**1**. Write a Java program that receives an integer 'n' from user and calculates the product of even numbers and the product of the odd numbers, from 1 to n.

**2**. Write a Java program that receives an integer from the user and calculates its factorial.

The factorial of n is given by:

n * (n-1) * (n-2) ... * 3 * 2 * 1

and is represented by n!

**3**. Create a Java banking application that asks for the value of the initial deposit, the monthly investment amount and the number of months you'll be earning money in savings.

After that, calculate the profit, knowing that the interest savings is 0.5%.

**Diamond Challenge asterisks:**

Write a Java application that asks an odd integer the user and draw a diamond in the following format:

```
*
***
*****
*******
*********
*******
*****
***
*
```

## No comments:

Post a Comment