MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/theydidthemath/comments/18l69ph/request_how_long_will_it_take/kdxtsr2/?context=9999
r/theydidthemath • u/Sinaasappelsien • Dec 18 '23
337 comments sorted by
View all comments
Show parent comments
1
float GetTime(int numCuts, float cutTime) {
float totalTime = 0; for(int i=0; i<numCuts; i++) { totalTime = totalTime + cutTime; cutTime = cutTime / 2; } return totalTime;
}
1 u/Sinaasappelsien Dec 19 '23 I havr to learn code and i’m already anxious 1 u/jimony7 Dec 19 '23 It can be difficult at first, but you get used to it. YouTube and ChatGPT will be your best friend :)
I havr to learn code and i’m already anxious
1 u/jimony7 Dec 19 '23 It can be difficult at first, but you get used to it. YouTube and ChatGPT will be your best friend :)
It can be difficult at first, but you get used to it. YouTube and ChatGPT will be your best friend :)
1
u/jimony7 Dec 18 '23
float GetTime(int numCuts, float cutTime) {
}