Yes, using an Arduino, your script would be in C.
If you have other requirements / limits to work within, you need to be more specific.
Please follow-up to let us know how you made out. For good karma, mark a reply as the answer if it helped!
The language doesn't matter. The only prerequisite is that it can interface with controllers or at least send information to a device that can interface with one.
For instance, you can write a Python script on a Raspberry Pi to calculate logic for a robot, then send binary information via USB to an Arduino, which is directly interfaced with a motor.