Solved Triangle in C