Write a Java program to Calculate the loss% of a sale, given that the cost price of an article is Rs 155.50 and sold for Rs 110.25
Answers
Answered by
1
Answer:
vydynogetnpjkugeez vyj
Explanation:
gehcgihttugxevbuon
Answered by
7
Answer:
import java.util.*;
public class loss
{
Public static void main (string args [])
{
Scanner in=new scanner (system.in)
double cp,sp,l,lp;
system.out.print("enter the cost price and the selling price");
cp=in.nextInt ();
sp=in.nextInt ();
l=cp-sp;
lp=loss/cp*100;
system.out.print ("loss percentage="+LP);
}
}
PLEASE MARK ME AS BRAINLIEST.
Similar questions