#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i,x,n,res=1;
printf("Enter the base number:");
scanf("%d",&x);
printf("Enter the power:");
scanf("%d",&n);
for(i=1;i<=n;i++)
res=res*x;
printf("X raised to the power N = %d"fac);
getch();
}
#include<conio.h>
void main()
{
clrscr();
int i,x,n,res=1;
printf("Enter the base number:");
scanf("%d",&x);
printf("Enter the power:");
scanf("%d",&n);
for(i=1;i<=n;i++)
res=res*x;
printf("X raised to the power N = %d"fac);
getch();
}
Comments
Post a Comment