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;
}
Keep in touch with Isaac Lozano Osorio!