Sie sind auf Seite 1von 1

#include <iostream>

using namespace std;


int n;
int main()
{
int square();
int cube();
cout<<"Enter the number:";
cin>>n;
cout<<"\nSquare of the number is:" << square();
cout<<"\nCube of the number is:" << cube();
return 0;
}
int square()
{
return n*n;
}
int cube()
{
return n*n*n;
}

Das könnte Ihnen auch gefallen