Computer Science, asked by venkatachalanikhil, 6 months ago

Write a program by using a class with the following specifications: Class name : Profit_Loss Data members/instance variables : int cp, sp Methods: Profit_Loss() : default constructor to initialize cp, sp Void input (int a, int b) : to assign cp with a and sp with b Void display() : to calculate and display either profit percent or loss percent

Answers

Answered by Anonymous
1

Answer:

321

Explanation:

Similar questions