Skip to content

This repository contains Basic c language programming problems questions with code solutions

Notifications You must be signed in to change notification settings

codewithshek/Basic-c-programming-problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic C Programming Problems

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.

Directory Structure

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

Table of Contents

Introduction

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.

List of Programs

Here is a list of the available programs in this repository:

  1. Find the net salary of an employee
  2. Find the total bill paid by customer for having breakfast in a hotel
  3. Convert a digit to words (0 to 9)
  4. Display greeting based on time of day
  5. Find roots of a quadratic equation
  6. Find scholarship amount of a student
  7. Find the net power bill paid by the customer
  8. Find the net tax paid by an employee using else-if ladder
  9. Read three numbers and arrange in ascending order
  10. Read marks of a student

How to Use

  1. Clone the repository to your local machine using:

    git clone https://github.com/codewithshek/Basic-c-programming-problems.git
  2. Navigate to the directory of the program you want to run.

  3. Compile the C program using a C compiler, for example:

    gcc program_name.c -o program_name
  4. Run the compiled program:

    ./program_name

Contributing

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.

About

This repository contains Basic c language programming problems questions with code solutions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages