Prints the numbers from 1 to 100, but for multiples of 3, prints "is divisible by 3" along with the number, and for multiples of 5, prints them with "can be divided by 5". For numbers which are multiples of both 3 and 5, it prints "is divisible by 3 and 5".
-
Notifications
You must be signed in to change notification settings - Fork 0
Prints the numbers from 1 to 100, but for multiples of 3, prints "is divisible by 3" along with the number, and for multiples of 5, prints them with "can be divided by 5". For numbers which are multiples of both 3 and 5, it prints "is divisible by 3 and 5".
scaulfield7/fizz_buzz_for_loop_and_condition
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Prints the numbers from 1 to 100, but for multiples of 3, prints "is divisible by 3" along with the number, and for multiples of 5, prints them with "can be divided by 5". For numbers which are multiples of both 3 and 5, it prints "is divisible by 3 and 5".
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published