feat: created initial files/comments.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
"""
|
||||
Write a program to reverse a given integer number (e.g., 76542 should become 24567)
|
||||
"""
|
||||
@@ -0,0 +1,4 @@
|
||||
"""
|
||||
Write a program to find the largest and smallest digit within a given integer (e.g., in 75869, the largest is 9 and
|
||||
the smallest is 5).
|
||||
"""
|
||||
@@ -0,0 +1,4 @@
|
||||
"""
|
||||
Write a program to check if a given number is a palindrome. A palindrome number is a number that remains the same
|
||||
when its digits are reversed (e.g., 121, 343)
|
||||
"""
|
||||
@@ -0,0 +1,4 @@
|
||||
"""
|
||||
Write a program to use a loop to find the factorial of a given number (e.g., 5!). The factorial of N is the product
|
||||
of all integers from 1 to N.
|
||||
"""
|
||||
@@ -0,0 +1,5 @@
|
||||
"""
|
||||
The Collatz conjecture states that if you start with any positive integer n, and if n is even, divide it by 2; if n is
|
||||
odd, multiply it by 3 and add 1. Repeat the process. The sequence will always eventually reach 1. Write a program to
|
||||
print this sequence for a given number.
|
||||
"""
|
||||
Reference in New Issue
Block a user