0% found this document useful (0 votes)
2 views

Assignment 16 ExtraFunctions

The document outlines a series of programming assignments focused on functions, including tasks such as calculating sums of natural numbers, factorials, LCM, HCF, and identifying prime and Armstrong numbers. Each assignment requires the creation of a specific program to perform the described calculations or checks. The tasks are designed to enhance understanding of basic programming concepts and mathematical operations.

Uploaded by

Aziz Bohra
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Assignment 16 ExtraFunctions

The document outlines a series of programming assignments focused on functions, including tasks such as calculating sums of natural numbers, factorials, LCM, HCF, and identifying prime and Armstrong numbers. Each assignment requires the creation of a specific program to perform the described calculations or checks. The tasks are designed to enhance understanding of basic programming concepts and mathematical operations.

Uploaded by

Aziz Bohra
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment -16 (Practice of Functions)

1. Write a program to calculate sum of first N natural numbers

2. Write a program to calculate sum of first N even natural


numbers

3. Write a program to calculate sum of first N odd natural


numbers

4. Write a program to calculate sum of squares of first N natural


numbers

5. Write a program to calculate sum of cubes of first N natural


numbers

6. Write a program to calculate factorial of a number

7. Write a program to count digits in a given number

8. Write a program to calculate LCM of two numbers

9. Write a program to reverse a given number

10. Write a program to find the Nth term of the Fibonnaci


series.

11. Write a program to print first N terms of Fibonacci series

12. Write a program to check whether a given number is


there in the Fibonacci series or not.

13. Write a program to calculate HCF of two numbers

14. Write a program to check whether two given numbers are


co-prime numbers or not

15. Write a program to print all Prime numbers under 100

16. Write a program to print all Prime numbers between two


given numbers

17. Write a program to find next Prime number of a given


number
18. Write a program to check whether a given number is an
Armstrong number or not

19. Write a program to print all Armstrong numbers under


1000

You might also like