Computer Science, asked by diva0007, 1 month ago

Write a program to enter the purchase amount and name of customer.
Calculate and print the discount, net payable amount after a giving a discount of
10% if amount is greater 12000 or 7% if the amount is less than 12000. in java

Answers

Answered by poojanand296
3

Answer:

java. util. Scanner;

{ public static void main(String args[])

{

double dis,amount,markedprice,s;

Scanner sc=new Scanner(System. in);

System. out. println("enter markedprice ");

markedprice=sc. nextDouble();

System. out. println("enter discount percentage

Similar questions