Skip to content

This repository is a collection of various C programming exercises. Each file covers a specific programming topic and provides opportunities to practice these subjects. The goal is to offer a range of exercises to understand and apply both basic and advanced concepts in the C language.

Notifications You must be signed in to change notification settings

deryaxacar/C-Programming

Repository files navigation

C Programming Exercises 📚

C Logo

This repository is a collection of various C programming exercises. Each file focuses on a specific programming concept and provides an opportunity to practice and improve your skills. The goal is to offer a range of exercises that help understand and apply both basic and advanced topics in C.


Table of Contents


Project Description

This repository includes a variety of C programming exercises. Each file implements a different algorithm or function to help you improve your skills in the C programming language.

Files

  • binary_search.c:
    This file implements the binary search algorithm to find a specific element in an array. Binary search is an efficient method for searching in a sorted array. 🔍

  • calculate_grade.c:
    This file calculates a letter grade based on student scores. It demonstrates how to map numeric scores to letter grades. 🎓

  • simple-calculator.c:
    This file is a simple calculator program that performs the four basic arithmetic operations: addition, subtraction, multiplication, and division. 🧮

  • sum-of-numbers.c:
    This file takes a list of numbers from the user and calculates their sum using loops and arithmetic operations. ➕🔢

  • the-multiplication-table.c:
    This file generates a multiplication table for a given number. It helps in learning multiplication and how to build tabular outputs. ✖️📊

  • id_number_check.c:
    This file checks the validity of a given ID number. It demonstrates data validation and basic verification logic. 🆔✅


Usage

To run each program, you need to compile the file using a C compiler (e.g., gcc). For example:

  1. Compile the program:

    gcc binary_search.c -o binary_search
  2. Run the compiled program:

    ./binary_search

Repeat the same steps for other files by replacing the file name accordingly.


Feedback & Contributions

Any kind of feedback and contributions are highly appreciated! Please feel free to open issues or pull requests via this repo.


2023 | Created by Derya ACAR

About

This repository is a collection of various C programming exercises. Each file covers a specific programming topic and provides opportunities to practice these subjects. The goal is to offer a range of exercises to understand and apply both basic and advanced concepts in the C language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages