C Programming - Assignment 7

 Assignment - 7

------------------------------

There are total 9 question in this assignment. These questions are based on loops. You can use best logics to solve these questions. 
  • Write programs to print the multiplication table of all the numbers between 1 and 10. Examples :
        2 * 1 = 2         3 * 1 = 3        4 * 1 = 4
        2 * 2 = 4         3 * 2 = 6        4 * 2 = 8
        .............            ....              ... ... ...  ..
        .... .... ...             .......
        2 * 10 = 20     3 * 10 = 30     4 * 10 = 40 
  • Input two limits and then print the factorial of all the numbers between the two limits
  • Input two limits and print all the prime numbers between the two limits
  • Input two limits and then print all the perfect numbers between the two limits
  • Input two year limits [ yyyy] and print all the years which are leap between them. For example : if the entered values are 1990 and 2024 then all the years which are leap between these two should be displayed.
  • Find the sum of the following series
    
  • Print all the numbers between 100 to 999 which are Pythagoras triplets
  • Input any digit number and then keep adding the digits of the number till the sum becomes a single digit answer. Say for example: num = 95673 so 9+5+6+7+3 = 30. Then 3+0 = 3 hence answer is 3.
  • Input any digit number and print in word. Example : if entered value is 456 then the output should be "Four Hundred and Fifty Six".





Comments