#include<stdio.h>//header file
#include<conio.h>//header file
void main() //starting of the main() function
{
long int c=1; //declaration of the variables
int n,i;
clrscr();
printf("program that calculates the value of n power of n.");
printf("\n\n\n\t\t------------INPUT-------------");
printf("\n\nenter any no.");//taking input from the user
scanf("%d",&n);
for(i=1;i<=n;i++)
c=c*n;
printf("\n\n\n\t\t------------OUTPUT------------");
printf("\n\nthe value of %d power of %d is=%ld",n,n,c);//printing output
getch();
}