0

Can anyone tell me what are test case 3,4,5 in code coach ??

Actually I have written many versions of my code but not able to cross the 3,4,5 Test case

19th Jan 2020, 2:55 PM
Ved Thakkar
Ved Thakkar - avatar
9 Respuestas
+ 2
Input 5 and you will get 71. As per description should be 72. use double and ceil and should be fine.
19th Jan 2020, 3:41 PM
Mihai Apostol
Mihai Apostol - avatar
+ 1
You can't view the third, fourth, and fifth test cases. But maybe if you provide the program we may be able to help you figure out the mistake.
19th Jan 2020, 2:59 PM
Jianmin Chen
Jianmin Chen - avatar
+ 1
You have to make your c variable which is total to be double. Then when you print it you must use ceil to round up your result.
19th Jan 2020, 3:34 PM
Mihai Apostol
Mihai Apostol - avatar
+ 1
So?
19th Jan 2020, 3:37 PM
Mihai Apostol
Mihai Apostol - avatar
0
#include <iostream> using namespace std; int main() { int a; int b; int c; int d = 5; int e = 40; cin >> a; b = a * d + e; c = b / 10 + b; cout << c; return 0; }
19th Jan 2020, 3:03 PM
Ved Thakkar
Ved Thakkar - avatar
0
Ved Thakkar, what challenge is this for?
19th Jan 2020, 3:05 PM
Jianmin Chen
Jianmin Chen - avatar
0
paint costs
19th Jan 2020, 3:08 PM
Ved Thakkar
Ved Thakkar - avatar
0
but its c++
19th Jan 2020, 3:35 PM
Ved Thakkar
Ved Thakkar - avatar
0
but when i tried it in my compiler its all right
19th Jan 2020, 3:38 PM
Ved Thakkar
Ved Thakkar - avatar