C program for personal accounting