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

Assignment - 24

Uploaded by

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

Assignment - 24

Uploaded by

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

Assignment - 24 Job Ready Bootcamp in C++, DSA and IOT MySirG

Functions in C++

1. Define a function to check whether a given number is a Prime number or not.


2. Define a function to find the highest value digit in a given number.
3. Define a function to calculate x raised to the power y.
4. Define a function to print Pascal Triangle up to N lines.
5. Define a function to check whether a given number is a term in a Fibonacci series or
not.
6. Define a function to swap data of two int variables using call by reference
7. Write a function using the default argument that is able to add 2 or 3 numbers.
8. Define overloaded functions to calculate area of circle, area of rectangle and area of
triangle
9. Write functions using function overloading to find a maximum of two numbers and
both the numbers can be integer or real.
10. Write functions using function overloading to add two numbers having different data
types.

You might also like