Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript Site
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Pow function example
 

 

 

Description

This shows how to use the pow() function .

Code

#include <stdio.h>
#include <dos.h>
#include <stdlib.h>
#include <math.h>


int main(void)
{
double result;
int number1 = 5.0;
int number2 = 3.0;

clrscr();
result = pow(number1,number2);
printf("%d to the power of %d is
%lf.\n",number1,number2,result);

return 0;

}

Information

tested using LCC Win 32 and Windows XP

 

 

 

 

Download

power.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Check when a process stops running(Powershell)
save text to a file(VB)
Neon text(Javascript)
start windows calculator(Powershell)
remove line from hyperlinks(CSS)
A simple function example(Powershell)
View content once(ASP)
videocard name(VB)

    




Copyright © 2003 by programmershelp.co.uk