#include<iostream>
using namespace std;
inline float mul (float x,float y )
{
return(x*y);
}
inline float div (float m,float n )
{
return(m/n);
}
int main()
{
float a,b;
cout<<"Enter the a & b: ";
cin>>a>>b;
cout<<"\nmultiplication is: "<<mul(a,b)<<"\n";
cout<<"\ndivision is: "<<div(a,b);
return 0;
}
using namespace std;
inline float mul (float x,float y )
{
return(x*y);
}
inline float div (float m,float n )
{
return(m/n);
}
int main()
{
float a,b;
cout<<"Enter the a & b: ";
cin>>a>>b;
cout<<"\nmultiplication is: "<<mul(a,b)<<"\n";
cout<<"\ndivision is: "<<div(a,b);
return 0;
}
No comments:
Post a Comment