Monday, 31 December 2012

C++ PROGRamming (A pow of (B))


Use These Given Source Code And You get Your own C++ Programming File That Gives You Ans Oa A Pow Of B
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