#include <iostream.h>
#include <math.h> // defines the pow ( ) function
#include <conio.h>
void main ( )
{
double result;
double x = 10, y = 2 ;
result = pow ( x, y ) ;
cout<<"\n"<<x<<" to the power "<<y<<" = "<<result ;
getch ( ) ;
}
Labels: C++ Codes, C++ Function Codes
Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies| |
---|
0 comments:
Post a Comment