C++ Programming | Functions 3

No Pass And No Return

In no pass no return, no value is passed from the calling function to the called function and no value is returned back from the called function to the calling function.

* Any number of arguments can be passed to a function
* Any data type of arguments can be passed to a function
* Number of arguments passed while calling a function should be same as number of arguments being received in the function definition.
* Data types of arguments passed while calling a function should be same as data types of arguments being received in the function definition.

Example:1
C++ program to take input for three numbers check and print the largest number?
Sol:

Example:2
C++ program to take input for a number calculate and print its factorial?
Sol:

Example:3
C++ program to take input for base(x) and power(y), calculate and print x to the power y?
Sol: