# include <iostream.h>
# include <stdlib.h>
# include <math.h>
# include <conio.h>
class student
{
public:
int rn (int);
double fees (double);
};
int student:: rn (int r)
{
int ans;
ans=abs (r);
return (ans);
}
double student::fees (double f)
{
double ans;
ans=fabs (f);
return (ans);
}
void main ( )
{
clrscr ( );
student st;
cout <<"\n Absolute value of -12 is "<<st.rn (-12);
cout <<"\n Absolute value of -12.4142 is "<<st.fees (-12.4142);
getch();
}