3n+1 program in c++ || C++ programming ||competitive programming

preview_player
Показать описание
The 3n+1 program
Logic
N=22 -given number
Divide N by 2 until answer is 1. if answer is in odd then instead of divide by 2 you have to multiply by three and add one in that and then divide by 2.
Follow My Github profile
Follow instagram
Follow My Linkdin profile:

Calculate Number of words in string using c programming video link-
Рекомендации по теме
Комментарии
Автор

what kind of situation will using this?

johanhu
visit shbcf.ru