Hey, can you guys tell me how to get this correct?It says "[Error] invalid operands of types 'double' and 'double' to binary 'operator%' "But I don't know what the error is!Under this sentence is my code:
(From the angry writer:Ahhh.... ..This DUMBDUDE code......)
Code:
#include<bits/stdc++.h> using namespace std; double n,x,y,a; int main(){ cin>>n>>x>>y; a=ceil(y/x); if(y%x==0)cout<<n-y/x<<endl; else cout<<n-a<<endl; return 0; }
Comment