Does C have anything to do with mathematics?
I don't think it matters much. It depends on how you do it. What you said on the second floor doesn't necessarily mean that you don't have strong logical analysis ability. In fact, programming mainly needs to develop good habits, and it is very important to practice more. Whether it is related to mathematics depends on what you do in C language. For example, if you want to deal with an elevator optimization algorithm, you need to have a good mathematical foundation and how to establish the required mathematical model.