0
Halloween candy
#include <iostream> #include <cmath> using namespace std; int main(){ double houses; double x; cin >> houses; if(houses>=3) x = 2/houses*100; cout<<round(x); } Basically, with the above code I got 2 out of 5 ticks when tested. What changes would be suggested?
3 odpowiedzi