Program to find the square of any number using DEFAULT ARGUMENT

/*Program to find the square of any number using DEFAULT ARGUMENT*/

#include
#include
#include double power(double n,int p=2);
int main()
{
double n;
cout<<"\nEnter any number"<>n;
double a=power(n);
cout<<"\nSquare of the given number="<OUTPUT :
Enter any number 6
Square of the given number=36







Leave a Reply

Your email address will not be published. Required fields are marked *