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
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
CBSE BOARD X,
16 days ago
Math,
16 days ago
Chinese,
1 month ago
Science,
8 months ago
English,
8 months ago