Computer Science, asked by siddhantsarthak9507, 11 months ago

A fruitseller buys a dozen banana at rs.X.He sells at rs.Y.Write a program to determine the profit or loss

Answers

Answered by neev19
1
It’s neither profit or loss
Answered by ParvezShere
3

Answer: I am writing the program in C++.

Explanation:

#include<iostream>

using namespace std;

Int main

{

Int x,y;

cout<<"enter the purchase price";

cin>>x;

cout<<"enter the selling price";

cin>>y;

If(x-y>0)

cout<<"profit";

else

cout<<"loss";

}

Similar questions