New course! Every coder should learn Generative AI!
Try a free lesson0
Rearrange the code to declare class "MyClass" with "foo" member function, which calculates and prints to the screen (a-b)/b expr
public: void foo(int a, int b) { }; cout << (a-b)/b; } class MyClass {
1 Answer
0
class myclass {
public :
void foo (int a, int b){
cout <<(a-b/b;}
};