Input A=2;
b=3;
Ans Is=8;
Copy That Blue colour Source Code=====>
#include<iostream.h>
#include<math.h>
#include<conio.h>
class s
{
int a,b,c;
public:
void get()
{
cout<<"Enter the value of A\n";
cin>>a;
cout<<"Enter the value of B\n";
cin>>b;
}
void put()
{
c=pow(a,b);
cout<<"b power of n result is "<<c;
}
};
void main()
{
clrscr();
s y;y.get();
y.put();
getch();
}
No comments:
Post a Comment