Algorithm Analysis
The number is three-digit. Therefore,to append the digit 3 to the number from both left and right, it is enough to multiplyit by 10 and add the number 30003 to the result.
If , then .
Algorithm Implementation
Readthe input value .
scanf("%d", &n);
Computeand display the answer.
res = n * 10 + 30003; printf("%d\n", res);