0

Ghena modify this so someone can place float values

#include <iostream> using namespace std; double t; class lupe{ public: double kip1(int t){ float result=((t*t*t)-6*(t*t)+35)/(t-3); cout<<result<<"."; } double kip(int t){ float result=((t*t*t)-6*(t*t)+35)%(t-3); cout<<result; } }; int main(){ cin>>t; lupe obj; obj.kip1(t); lupe obk; obk.kip(t); }

27th Dec 2017, 5:24 PM
Ian
Ian - avatar
2 Réponses
+ 11
You should post this feedback as a comment on Ghena's code so that s/he can see this and modify the code.
27th Dec 2017, 5:38 PM
Shamima Yasmin
Shamima Yasmin - avatar
0
Amma do it
27th Dec 2017, 6:08 PM
Ian
Ian - avatar