Instant Challenges

IC1. Get 2 integers and multiply

Get two integers from user and print the product of the two numbers.

Enter the first number: 3
Enter the second number 2: 5
Result: 15

IC2. Get 2 decimal values and multiply

IC1 will fail, if you enter a decimal number.  Modify IC1 to allow float values.

Enter first number: 3.5
Enter second number 2: 1.5
Result: 5.25

IC3. Odd or even number

Get an integer as input from the user. Print if it is an odd number or even number.

Enter an integer: 3
3 is an Odd number

Enter an integer: 18
18 is an even number.