Code Like Pro!
Exploring For Loop
- Write a program to find the factorial of a user-entered number.
- Write a program to generate the multiplication table of a number N, up to 10 terms, where N will be provided by the user.
- Write a program to print the even numbers between two numbers, entered by the user.
- Write a program to print the proper factors of a user-entered number.
- Write a program to find the Least Common Multiple (LCM) of two user-entered numbers.
- Write a program to convert a Decimal Number into its Binary equivalent.
- Write a program to count the frequency of each digit from 0 to 9 in the digits of a number, which the user will provide, without using an array.
- Print Floyd’s Triangle for n lines, where n will be provided by the user. Hint: Floyd’s triangle for 4 lines looks like this –
1 2 3 4 5 6 7 8 9 10
- Print Pascal’s Triangle for n lines, where n will be provided by the user. Hint: Pascal’s triangle for 4 lines looks like this –
1 1 1 1 2 1 1 3 3 1
- Write a program to count the number of distinct digits in a user-entered number, without the use of array.
Solution will be uploaded soon.
You are supposed to write the code for all problems and then check the solution file. The code present in the solution is supposed to be the best and most efficient code. You can mail your solution to me on ankan.learncwithme@gmail.com and I'll surely check it and if I find it better I'll put it in the solution.