Computer Science, asked by indraneel14, 2 months ago

Write a JAVA program. A computer manufacturing company offers 20% discount on laptop. If the price of any laptop is 35423/- then calculate the price after discount. Print original and discounted price.​ DO NOT USE ANY INPUT METHOD​

Answers

Answered by waraafghan
0
public class discount
{
public static void main(String args[])
{
int price = 35423;
double dis, finalp;
dis = (20/100)* price;
finalp = price - dis;
System.out.println(“Original Price = “+price+” Discounted Price = “+finalp);
}
}
Similar questions