Fill in the blanks in this c++ program to get desired output
Clash Royale CLAN TAG#URR8PPP
Fill in the blanks in this c++ program to get desired output
Fill in the Blanks to get the following output
Hello guys im not getting how to solve this , can anyone help me out?
Here's The code::
#include <iostream>
using namespace std;
class S;
class R
int width, height;
public:
int area() // Area of rectangle
return (width * height);
void convert(S a);
;
class S
_____________________;
private:
int side;
public:
S(int a) : side(a)
;
void ___________(S a)
width = a.side;
height = a.side; // Interpreting Square as an rectangle
int main()
int x;
cin >> x;
R rect;
S sqr(x);
rect.convert(sqr);
cout << rect.area();
return 0;
Thanks in advance ______
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
We. Won't. Do. Your. Homework.
– sturcotte06
31 secs ago