[Homework] C# Basics - Loops
Здравейте, първо искам да се извиня ако някъде съществува отключена тема за това домашно, и не съм я намерил. (Заключена тема). Ако има такава, моля изтрийте поста.
Та ето ги моите решения на задачите от конкретното домашно. Ще се радвам да видя и други решения.
Поздрави!
Problem 1: Numbers from 1 to N
Problem 2: Numbers Not Divisible by 3 and 7
Problem 3: Min, Max, Sum and Average of N Numbers
Problem 4: Print a Deck of 52 Cards
Problem 5: Calculate 1 + 1!/X + 2!/X2 + … + N!/XN
Problem 6: Calculate N! / K!
Problem 7: Calculate N! / (K! * (N-K)!)
Problem 8: Catalan Numbers
Problem 9: Matrix of Numbers
Problem 10: Odd and Even Product
Problem 11: Random Numbers in Given Range
Problem 12*: Randomize the Numbers 1…N
Problem 13: Binary to Decimal Number
Problem 14: Decimal to Binary Number
Problem 15: Hexadecimal to Decimal Number
Problem 16: Decimal to Hexadecimal Number
Problem 17*: Calculate GCD
Problem 18*: Trailing Zeroes in N!
Problem 19**: Spiral Matrix
Problem 20**: Exam Schedule
Problem 21**: Odd / Even Elements
Problem 22**: Arrow
Problem 23**: Five Special Letters
Problem 24**: Bit Roller