Electrical and Computer Engineering
2
of 30
UAH
CPE 112
Example C++ Program
#include <iostream>
using namespace std;
int
Square(
int
);
int
Cube(
int
);
int
main
()
{
cout
<< The square of 27 is << Square(27) <<
endl
;
cout
<< and the cube of 27 is << Cube(27) <<
endl
;
return
0;
}