You can do that by passing command-line arguments to your C program.
For example, consider this (MyCalc is your calculator executable):
C:\> MyCalc.exe
multiply 2 5
>>> 10
Here
multiply, 2, and
5 are command-line arguments, and your program functions according to them.
See
this google link for informatin on the subject.