Practice level 7 · Medium · 20 programs

Functions

Reusable functions for maths, checks and menus.

The programs in this level

  1. Create function to add two numbers
  2. Function for subtraction
  3. Function for multiplication
  4. Function for division
  5. Function for even/odd
  6. Function for positive/negative
  7. Function for maximum of two numbers
  8. Function for maximum of three numbers
  9. Function for factorial
  10. Function for prime checking
  11. Function for palindrome
  12. Function for Armstrong
  13. Function for Fibonacci
  14. Function for GCD
  15. Function for LCM
  16. Function for power
  17. Function for digit sum
  18. Function for reverse number
  19. Function for calculator
  20. Build menu-driven program using functions

Unlock this lesson

Create a free account, then buy the course to open every lesson.

Everything in C Programming: BCA, MCA, BTech & O Level

  • 37 step-by-step lessons
  • 10 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account