Search Results

Search: Posts Made By: Bunchhieng
1,472
Posted By Bunchhieng
Hello folks, this is my working C code. I'd like...
Hello folks, this is my working C code. I'd like to translate this code into bash.


#include <stdio.h>

int count_collatz_steps (int number) {

int step = 0;

while (number != 1) {...
1,472
Posted By Bunchhieng
This is not homework. I actually implemented this...
This is not homework. I actually implemented this in C and want to make it work on Bash. I just started to learn Bash a few days ago.
1,472
Posted By Bunchhieng
Trying to implement count_collatz_step function
Can anyone give me a clue why this code doesn't work as expected? The function count_collatz_step() take one parameter which a number that need to calculate collatz until it reaches 1. The func...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy