Exercises: Write a program using functions to Print even and odd numbers in a given range • Find power of a number

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 17PE
icon
Related questions
Question

In c language using functions
please send it fastly

Exercises: Write a program using functions to
• Print even and odd numbers in a given range
• Find power of a number
• Return maximum of given two numbers
• To print all strong numbers between given interval using functions.
• Check whether a number is prime, Armstrong or perfect number using functions.
• Demonstrate call by value and call by reference mechanisms.
• Find power of any number using recursion.
• Generate Fibonacci series using recursion
• Find product of two numbers using recursion
• Find the sum of digits of a number. Number must be passed to a function using
pointers.
• Find GCD (HCF) of two numbers using recursion.
Find LCM of two numbers using recursion.
Transcribed Image Text:Exercises: Write a program using functions to • Print even and odd numbers in a given range • Find power of a number • Return maximum of given two numbers • To print all strong numbers between given interval using functions. • Check whether a number is prime, Armstrong or perfect number using functions. • Demonstrate call by value and call by reference mechanisms. • Find power of any number using recursion. • Generate Fibonacci series using recursion • Find product of two numbers using recursion • Find the sum of digits of a number. Number must be passed to a function using pointers. • Find GCD (HCF) of two numbers using recursion. Find LCM of two numbers using recursion.
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning