I've written a C program on Linux to calculate the perimeter (I've called the perimeter variable "p") of a square from its side length ("l"). Now I want to use Espeak, a speech synthesis program on Linux to speak the result. I've thought of using the "system" method.
For example, if I want to make Espeak speak "hello" inside my program I would do:
system("espeak -v it Hello");
Now how can I do with the perimeter?
system ("espeak -v it The perimeter is p");
doesn't work.