Write a program in Java to calculate the amount after applying discount
Answers
Answered by
0
Answer:
java. util. Scanner;
class Discount. {
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 ");
Explanation:
please Mark me as Brainlist
Answered by
0
Explanation:
Complete coding for how to write a program in Java to calculate the amount after applying discount .
Attachments:
Similar questions