Computer Science, asked by venkatachalanikhil, 3 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:

Aśvaghoṣa or Ashvaghosha was a Sarvāstivāda Buddhist philosopher, dramatist, poet and orator from India. He was born in Saketa in northern India. He is believed to have been the first Sanskrit dramatist, and is considered the greatest Indian poet prior to Kālidāsa.

Similar questions