3 ms·
But, then does programming. In C, there's at least three (arguably more) ways of doing a loop. You can use for (...) { ... }, you can use while (...) { ... },
by randomswede 5y ago
But, then does programming. In C, there's at least three (arguably more) ways of doing a loop.
You can use for (...) { ... }, you can use while (...) { ... }, and you can use do { .... } while ( ... ).
Of course, which one you pick depends on context. But, then, which one of sqrt or "raised to 1/2" you choose also depends on what's more convenient at the time.
- k__ 5y agoFair enough! Good points, thanks.