Calling Multiple Functions

If you have grasped the concept of ‘calling’ a function you are prepared for a call to more than one function. Consider the following example:

Example

#include<stdio.h>
int main( ) 
{ 
    int num;
    printf("Enter number ");
    scanf("%d",&num);
    printf("Square is %d",square(num)); // calling function square
    printf("\nCube is %d",cube(num)); // calling function cube

    // calling function toThePowerFour
    printf("\nPower to 4 is %d",toThePowerFour(num)); 
    getchar();
    return 0;

}
int square(int number)
{
    // returning a value from function to the calling block
    return number*number; 
}

int cube(int number)
{
    return number*number*number; 
}

int toThePowerFour(int number)
{
    return number*number*number*number; 
}