Code Like Pro!

Exploring For Loop

  1. Write a program to find the factorial of a user-entered number.
  2. Write a program to generate the multiplication table of a number N, up to 10 terms, where N will be provided by the user.
  3. Write a program to print the even numbers between two numbers, entered by the user.
  4. Write a program to print the proper factors of a user-entered number.
  5. Write a program to find the Least Common Multiple (LCM) of two user-entered numbers.
  6. Write a program to convert a Decimal Number into its Binary equivalent.
  7. 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.
  8. 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
  9. 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
  10. 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.