Computer Science, asked by sainavin7828, 17 days ago

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 blowww5
0

Answer:

cxyddcvjcxbmmvccvmx

 \:

ⳙⳓⲉⲩ .vtfbhfrgvjh

Similar questions