CODE:
import java.util.*;
public class Day2{
//Operators
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double meal_cost = sc.nextDouble();
int tip_percent = sc.nextInt();
int tax_percent = sc.nextInt();
double tip = (tip_percent*meal_cost)/100;
double tax = (tax_percent*meal_cost)/100;
double total_cost = meal_cost + tip + tax;
System.out.println(Math.round(total_cost));
}
}
GitHub:
إرسال تعليق
Please don't enter any spam link