#include<iostream.h>
#include<conio.h>
#include<math.h>
void power(int n1, int n2);
void main()
{
clrscr();
int num1, num2;
cout<<"Enter two numbers: ";
cin>>num1>>num2;
power(num1, num2);
getch();
}
void power(int n1, int n2)
{
cout<<n1<<" raised to the power of "<<n2<<" is : "<<pow(n1,n2);
}
0 comments:
Post a Comment