Code:

#include <stdio.h>
int square(int n)
{
int square_of_n;
square_of_n = n * n;
return square_of_n;
}
int cube(int n)
{
int n_cubed;
n_cubed = n * n * n;
return n_cubed;
}
int quartic(int n)
{
int quartic_n;
quartic_n = n * n * n * n;
return quartic_n;
}
int quintic(int n)
{
int quintic_n;
quintic_n = n * n * n * n * n;
return quintic_n;
}
int main ()
{
int n, i;
i=0;
printf("Please enter a number: \n");
scanf("%d", &n);
while (i<n)
{
printf("\nNumber\tSquare\tCube\tQuartic\tQuintic\n");
printf("%d\t%d\t%d\t%d\t%d\n", i, square, cube, quartic, quintic);
i++;
}
return 0;
}