#include<stdio.h>
#include<conio.h>
void main()
{
int n,m,i,pow=1;
clrscr();
printf("Enter The Number And Its Power : ");
scanf("%d%d",&n,&m);
for(i=0;i<m;++i)
{
pow=pow*n;
}
printf("\n\n%d ^ %d = %d",n,m,pow);
getch();
}
#include<conio.h>
void main()
{
int n,m,i,pow=1;
clrscr();
printf("Enter The Number And Its Power : ");
scanf("%d%d",&n,&m);
for(i=0;i<m;++i)
{
pow=pow*n;
}
printf("\n\n%d ^ %d = %d",n,m,pow);
getch();
}
0 comments:
Post a Comment