We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 2: Operators
Day 2: Operators
Sort by
recency
|
3388 Discussions
|
Please Login in order to post a comment
Python Code :
def solve(meal_cost, tip_percent, tax_percent):
c++
void solve(double meal_cost, int tip_percent, int tax_percent) {
}
* Simple java code*
* Simple java code*
JAVA
`public static void solve(double meal, int tip, int tax) { double res1=(tip/100.0)*meal; double res2=(tax/100.0)*meal; System.out.println(Math.round(res1+res2+meal)); } }
public class Solution { public static void main(String[] args) throws IOException { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
}