Professional Documents
Culture Documents
Area and Perimeter of A Triangle Using Class and Function
Area and Perimeter of A Triangle Using Class and Function
};
int main()
{
triangle t;
float b, h;
cout<<"Enter base and height of the triangle\n";
cin>>b>>h;
t.area(b,h);
t.perimeter(b,h);
}
}
};
int main()
{
complex a, b, c;
a.setcomplex();
b.setcomplex();
c.addition(a,b);
c.substraction(a,b);
return 0;
}
tax=0.3*total;
cout<<"Total annual tax= "<<tax;
}
};
int main()
{
income i;
i.read();
i.pay_sal();
i.d_tax();
return 0;
}
OOPS
LAB FILE
NAME-SALONI SINGHAL
ROLL NO.- 2K15/CO/108