#include <iostream>
using namespace std;

class couple
{
   private:
   int first;
   int second;


   public:
   void setfirst(int a)
   {
    first = a;
   }

   void setsecond(int b)
   {
     second=b; 
   }

   int getfirst()
   {
     return first;
   }

   int getsecond()
   {
     return second;
   }

    int multiply()
    {
    return first*second;
    }

};


int main() {

    couple couple_1,couple_2;
    couple_1.setfirst(5);
    couple_1.setsecond(6);

    cout<<couple_1.getfirst()<<endl;
    cout<<couple_1.getsecond()<<endl;
    cout<<couple_1.multiply()<<endl;

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: