Computer science is generally considered a formal science rather than a natural or social science. It focuses on the study of algorithms, data structures, and the principles of computing. While it shares some characteristics with natural sciences, such as the use of mathematical models and empirical methods, it is distinct in that it primarily deals with abstract concepts and theoretical frameworks.
Natural sciences, like physics or biology, study the physical world and natural phenomena. Social sciences, such as sociology or psychology, examine human behavior and societal structures. Computer science, on the other hand, is more concerned with the design and analysis of computational systems and processes.
In summary, computer science is a unique field that bridges the gap between mathematics and engineering, making it a formal science rather than a natural or social science.