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
9 Respuestas
+ 2
Input 5 and you will get 71.
As per description should be 72.
use double and ceil and should be fine.
+ 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.
+ 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.
+ 1
So?
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;
}
0
Ved Thakkar, what challenge is this for?
0
paint costs
0
but its c++
0
but when i tried it in my compiler its all right