An inline function looks like normal function in the source file but inserts the function’s code directly into the calling program. To make a function inline, one has to insert the keyword inline in the function header.
Output:
Enter the Principle Amount Rs. :60000
Enter the Number of Years : 10
Enter the Rate of Interest :5
The Simple Interest = Rs. 30000