#include <iostream>
using namespace std;
int main() {
int s=0, x;
cin >> x;
s += s + x % 10 + ((x / 10) % 10);
cout << s;
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main() {
int s=0, x;
cin >> x;
s += s + x % 10 + ((x / 10) % 10);
cout << s;
return 0;
}