c_code/hello world.cpp

11 lines
130 B
C++

#include<iostream>
using namespace std;
int main() {
int a,b,c;
cin>>a;
cin>>b;
cout<<(a+b)*2<<endl;
cout<<a*b;
return 0;
}