A lightweight Simple Calculator built in pure C language that performs both basic and advanced mathematical operations.
Designed with a clean, class-wise menu system and a fresh-page (clear screen) effect for better console experience.
- Basic Operations: Addition, Subtraction, Multiplication, Division
- Advanced Operations: Square Root, Power, Factorial
- Smart Input Handling: Detects invalid entries and prevents crashes
- Dynamic Page Refresh: Uses a cross-platform clear screen system
- Language: C
- Libraries:
stdio.h,stdlib.h,math.h - Tested Environment: Code::Blocks, Turbo C, GCC, and OnlineGDB
- Open the code in Code::Blocks, Dev-C++, or any offline C compiler.
- Build and run the program normally.
- You’ll experience smooth clear-screen transitions between menus.
- Some online compilers do not support the
system("cls")orsystem("clear")command. - In such environments, the program still works, but the clear-screen effect may not display properly.
- If you see text shifting or stacking instead of clearing, that’s normal in restricted environments.