Basic C calculating programs