Algorithm

Binary to decimal and decimal to binary conversion in C

This program will show you to convert a binary to decimal and vice versa.

This will take a character array input which is the binary value. Then it will convert the binary value to decimal and then convert it again from decimal to binary. Here is the code.

No Comments

Read more

Generate prime number using seive function in c

This is a sample of how to generate prime numbers can be generated using seive method. This is a sample code written in c. It will generate prime numbers and save them to a file. It will generate all primes upto 10000000. These codes are commented well to show how effeciency of this program has been increased

No Comments

Read more

Eclidean GCD by Substraction

Euclidean GCD is a method or algorithm for calculating GCD (Greatest Common Divisor). I implemented this in C. To know details about euclidean gcd visit details of this methon in wikipedia

http://en.wikipedia.org/wiki/Euclidean_algorithm

No Comments

Read more