MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / main

Function main

Hackerrank_problems/Operators/Solution.cpp:12–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12int main()
13{
14 double meal_cost;
15 cin >> meal_cost;
16 cin.ignore(numeric_limits<streamsize>::max(), '\n');//ignores the input buffer for next input
17
18 int tip_percent;
19 cin >> tip_percent;
20 cin.ignore(numeric_limits<streamsize>::max(), '\n');
21
22 int tax_percent;
23 cin >> tax_percent;
24 cin.ignore(numeric_limits<streamsize>::max(), '\n');
25
26 solve(meal_cost, tip_percent, tax_percent);//function call
27
28 return 0;
29}

Callers

nothing calls this directly

Calls 2

maxFunction · 0.85
solveFunction · 0.70

Tested by

no test coverage detected