Monday, December 10, 2007

How to declare a function

How to declare a function

To declare a function

#include

int squ (int);

void main ()

{

for (int k=1 ; k<=10; k++)

cout <<>

}

int squ (int u)

{

return u*u;

}

Result :

No comments: