Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ power

/* pow example */
#include <stdio.h>      /* printf */
#include <math.h>       /* pow */

int main ()
{
  printf ("7 ^ 3 = %f
", pow (7.0, 3.0) );
  printf ("4.73 ^ 12 = %f
", pow (4.73, 12.0) );
  printf ("32.01 ^ 1.54 = %f
", pow (32.01, 1.54) );
  return 0;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #power
ADD COMMENT
Topic
Name
3+1 =