This repository contains a collection of basic C language programming problems along with their code solutions. These problems are designed to help beginners practice and improve their C programming skills.
github.com/codewithshek/basic-c-programming-problems/
├── README.md
├── C Program Find the net salary of an employee with the following criteria/
│ ├── README.md
│ └── code.c
├── C Program Find the total bill paid by customer for having breakfast in a hotel with the following criteria/
│ ├── README.md
│ └── code.c
├── C Program to a digit in words till 0 to 9/
│ ├── README.md
│ └── code.c
├── C Program to display good morning, good afternoon, good night when time is entered/
│ ├── README.md
│ └── code.c
├── C Program to find roots of the quadratic equation/
│ ├── README.md
│ └── code.c
├── C Program to find scholarship amount of student/
│ ├── README.md
│ └── code.c
├── C Program to find the net power bill paid by the customer/
│ ├── README.md
│ └── code.c
├── C Program to find the net tax paid by an employee using else-if ladder/
│ ├── README.md
│ └── code.c
├── C Program to read three numbers and arrange in ascending order/
│ ├── README.md
│ └── code/
│ ├── README.md
│ ├── code1.c
│ └── code2.c
└── C program to read marks of a student /
├── README.md
└── code.c
The purpose of this repository is to provide a variety of C programming problems that cover different aspects of the language, such as control structures, functions, arrays, pointers, and more. Each problem includes a description and a corresponding solution in C.
Here is a list of the available programs in this repository:
- Find the net salary of an employee
- Find the total bill paid by customer for having breakfast in a hotel
- Convert a digit to words (0 to 9)
- Display greeting based on time of day
- Find roots of a quadratic equation
- Find scholarship amount of a student
- Find the net power bill paid by the customer
- Find the net tax paid by an employee using else-if ladder
- Read three numbers and arrange in ascending order
- Read marks of a student
-
Clone the repository to your local machine using:
git clone https://github.com/codewithshek/Basic-c-programming-problems.git
-
Navigate to the directory of the program you want to run.
-
Compile the C program using a C compiler, for example:
gcc program_name.c -o program_name
-
Run the compiled program:
./program_name
Contributions are welcome! If you have a new problem or a better solution to an existing problem, feel free to fork the repository and submit a pull request.