Collatz_problem/main.c
2025-08-26 06:11:33 +03:00

11 lines
262 B
C

#include <stdint.h>
#include <stdio.h>
void collatz_len_and_peek(uint64_t x, uint64_t *steps, uint64_t *peek);
int main() {
uint64_t steps, peak;
collatz_len_and_peek(13, &steps, &peak);
printf("steps=%lu, peak=%lu\n", steps, peak);
return 0;
}