(Move to ...)
▼
Program to illustrate the pow ( ) function
#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 ( ) ;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment