C Programming Language Algorithm Examples/Exercises

When I first started the computer engineering program, the only software lesson we saw was Algorithm and Programming-1. In this lesson, we saw the C programming language. Although I was good with computers until I started university, I had no progress in software.

As such, I had a little more difficulty than normal in my first programming language learning adventure and I wanted to take advantage of internet. I can read documents, I did too, but after a while, seeing things directly on the code becomes more permanent for me. This may vary from person to person, but I think there are people who are like me. Even thinking about a problem for a long time teaches a lot. (Of course, if there is a shortage of time, it is important to be able to think faster and write faster code)

At this point, I searched and found examples/exercises related to C language on Github. But some of them were either too complicated or not working. So I decided to collect and publish the codes I wrote in order to contribute. Although what I have published is simple codes for this industry, I think it will be useful for a beginner. I hope it will be useful to those who need it.

1- Program that prints one character per line when printing text

2- Program that sorts array elements

3- Calculator with simple and advanced options

4- Decimal to Binary

5- Program to find Fibonacci numbers of the entered length

6- Program to calculate factorial

7- Program to find how many digits a given number has

8- Find frequency of an array in an array

9- Program to find largest integer value and index in array

10- Program to find the largest of three given numbers

11- Program to find if given number is Armstrong number

12- Letter guessing game

13- Program that gives the sum and average of numbers

14- Number guessing game

15- Program to find prime numbers and Germain prime numbers

16- Program to print numbers from 1 to 10

17- Program that prints the reverse of the given text

I will be happy if you give stars on Github. Thank you, good luck. You can contact me for your questions and problems.

--

--

--

I’m Alihan and 19 years old. I am student of computer engineering 2th grade at Necmettin Erbakan University. I love Software & Digital Marketing.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Fake it until you make it — Reading GOES NetCDF4 data on AWS S3 as Zarr for rapid data access

How to start writing your first Webapp 2

How to contribute to an open-source project

What is Virtualization?

Chaos Engineering during Covid-19

Differences between Imperative Programming and Declarative Programming

READ/DOWNLOAD@! Simio and Simulation: Modeling, An

Data Structures 101: Introduction to Data Structures and Algorithms.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alihan Demirdaş

Alihan Demirdaş

I’m Alihan and 19 years old. I am student of computer engineering 2th grade at Necmettin Erbakan University. I love Software & Digital Marketing.

More from Medium

C for Beginners (Part Four)

Inheritance in C++

Factorial of a Number in C using Ternary Operator

C Programming — Factorial of a Number in C using Ternary Operator

My journey from the world of Java and Python to C++