1
最初の数字を十位に格納し、次に二番目の数字を一位に格納する変数に、別々に入力した2つの数値を格納するにはどうすればよいですか?たとえば...別々に入力された数値を同じ変数C++に保存する方法は?
int num1 = 0;
int num2 = 0;
cout<<"first number: ";
cin>>num1;
cout<<"second number: ";
cin>>num2;
//now the variable both should store the number 12
int both = ?????????;