Solution to the problem number 155 of AceptaelReto - 155.

Any questions do not hesitate to contact.

#include <iostream>
using namespace std;

int main()
{
    int lc=0;
    int la=0;
    do
    {
    cin >> lc;
    cin >> la;
    if(la>=0&&lc>=0)
    printf("%d\n",(la+lc)*2);
    }
    while(!(la<0||lc<0));
        return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!