0
Can anyone tell me why m not passing test cases after passing 1 and 2?
#include <iostream> #include <cmath> using namespace std; int main() { float dollarBills = 0; float totalHouse = 0; cin >> totalHouse; if(!totalHouse>=3) cout << "Please enter an input greater than or equal to 3" <<endl; dollarBills = round((3 / 2 * 2 * 100) / totalHouse); cout << dollarBills << endl; return 0; }
3 Answers
0
if (! (totalHouse>=3)).......
0
The number inside round is constant why you just typed 300?
0
Thanks for replying
But I just need to use ceil instead of round