import java.util.*;
class ProfitLoss
{
public static void main(String arr[])
{
int sp,cp,ans;
Scanner sc=new Scanner(System.in);
System.out.println("Enter the Selling Price of the commodity:");
sp=sc.nextInt();
System.out.println("Enter the Cost Price of the commodity:");
cp=sc.nextInt();
if(sp>cp)
{
ans=sp-cp;
System.out.println("Profit:"+ans);
}
else if(sp
Answers
Answered by
0
Answer:
cxyddcvjcxbmmvccvmx
ⳙⳓⲉⲩ .vtfbhfrgvjh
Similar questions
India Languages,
8 days ago
English,
17 days ago
English,
8 months ago
Math,
8 months ago
English,
8 months ago