TORONTO KIDS COMPUTER CLUB | PMCA Sunday 09:00 Python Homework 20.04.05.
17304
post-template-default,single,single-post,postid-17304,single-format-standard,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

PMCA Sunday 09:00 Python Homework 20.04.05.

09 Apr PMCA Sunday 09:00 Python Homework 20.04.05.

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.

No Comments

Sorry, the comment form is closed at this time.