From 8c418d411a7e51731106914dec2cb76828963468 Mon Sep 17 00:00:00 2001 From: raj-humble <35659984+raj-humble@users.noreply.github.com> Date: Sun, 28 Oct 2018 17:16:00 +0530 Subject: [PATCH] Update day2.java --- day2.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/day2.java b/day2.java index d9851c3..890555e 100644 --- a/day2.java +++ b/day2.java @@ -9,7 +9,6 @@ public class Solution { - // Complete the solve function below. static void solve(double meal_cost, int tip_percent, int tax_percent) { double ans = meal_cost + 0.01*tip_percent*meal_cost + 0.01*tax_percent*meal_cost; System.out.println("The total meal cost is " + Math.round(ans)+ " dollars."); @@ -20,7 +19,7 @@ static void solve(double meal_cost, int tip_percent, int tax_percent) { public static void main(String[] args) { double meal_cost = scanner.nextDouble(); - scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); + scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");//my_change int tip_percent = scanner.nextInt(); scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");