fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n, c2, c1, s;
  6. cin >> n;
  7. c2 = n % 10;
  8. c1 = n / 10;
  9. cout << (c2 + c1) * (c2 + c1) << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 15232KB
stdin
99
stdout
324