You are viewing a single comment's thread. Return to all comments →
#include <iostream> using namespace std; class Rectangle{ public: void area(int a, int b){ cout<<a<<" "<<b<<endl<<a*b; } }; int main(){ int w,h; cin>>w>>h; Rectangle rec; rec.area(w,h); }
Seems like cookies are disabled on this browser, please enable them to open this website
Rectangle Area
You are viewing a single comment's thread. Return to all comments →