15 Oct Sunday 10:00 Java Homework 10.13
Question 1:
Input a number using scanner and print the factorial of that number.
E.g. Factorial of 5 is 1 * 2 * 3 * 4 * 5 =120
Question 2:
Create a loop between 1 to 20. Print “fizz” if the number is divisible by 3 and “bizz” when the number is divisible by 5 and “fizzbizz” if a number is divisible by both 3 and 5 . if none of this condition match print the number.
Sorry, the comment form is closed at this time.