Question: I have to read from standard input two numbers as strings, in C. How can I print their sum as a string too? I have:

```
char a[10],b[10];
printf("enter the two numbers");
scanf("%s%s",&a,&b);
char sum[20];
sum=?

```

A little tip,please?
Thank you!

Answer: 
Unless it is prohibited to do so, then I would approach as the following:

* Convert the input string(s) to numbers. I would try[`strtol()`](http://www.cplusplus.com/reference/cstdlib/strtol/).
* Add the numbers
* Convert the sum from number to string. I would try[`snprintf()`](http://www.cplusplus.com/reference/cstdio/snprintf/).
Convert the strings into numbers using `atoi`, then add them together, and then print the sum using a print function like printf. See [this](http://www.cplusplus.com/reference/cstdlib/atoi/)