|
Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
|
Implementation of Collatz' conjecture More...
#include <stdio.h>#include <stdlib.h>Functions | |
| int | main (int argc, char *argv[]) |
| Main function. | |
Implementation of Collatz' conjecture
Collatz conjecture: a series for a number \(n\) in which if \(n\) even then the next number is \(\frac{n}{2}\) ,but if n is odd then the next number is \(3n+1\). This series continues till \(n\) reaches 1
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Main function.