Skip to content

caiyuchao/c_code

 
 

Repository files navigation

Simple C\C++ projects

Most of them are from Mega Project List.

Gauss

Solve systems of linear equations using Gauss-Jordan method

Shapes OOP

This is a sample of code that I've wrote while was learning C++ OOP principles

Currency converter

Converts currency

Decimal to binary converter

Converts positive decimal numbers into binary

PI

Prints some approximate values of pi and let you choose how many digits of pi will be print

Tile cost

Calculates the total cost of tile it would take to cover a floor plan of width and height, using a cost entered by the user.

Change return

Calculates change and prints how the number of quarters, dimes, nickels, pennies needed for the change

Fizz Buzz

Prints numbers from 0 to 100. For multiples of 3 print “Fizz” and for the multiples of 5 print “Buzz”. For numbers which are multiples of both 3 and 5 print “FizzBuzz”

String reverser

Reverse entered string and check whether the string is a palindrome

Vowels counter

Counts the number of vowels in the text and sum of each vowel found.

Collatz Conjecture

Collatz Conjecture realization

Distance Between Two Cities

Calculates the distance between two cities using coordinates and allows the user to specify a unit of distance.

Coin Flip Simulator

Simulates flipping a coin however many times the user decides. Records the outcomes and count the number of tails and heads.

About

Simple C projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 74.0%
  • C++ 26.0%