#include<iostream>
using namespace std;
inline int Square(int l)
{
int s=l*l;
return s;
}
inline int Cube(int l)
{
int s1=l*l*l;
return s1;
}
int main()
{
int l;
cout<<"Enter side"<<endl;
cin>>l;
cout<<"Square is "<<Square(l)<<endl;
cout<<"Cube is "<<Cube(l)<<endl;
return 0;
}
using namespace std;
inline int Square(int l)
{
int s=l*l;
return s;
}
inline int Cube(int l)
{
int s1=l*l*l;
return s1;
}
int main()
{
int l;
cout<<"Enter side"<<endl;
cin>>l;
cout<<"Square is "<<Square(l)<<endl;
cout<<"Cube is "<<Cube(l)<<endl;
return 0;
}
No comments:
Post a Comment