How to find surface area in C program?