basic c program translation