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

Опубликовано: 29 Октябрь 2024
на канале: Awesome techies
3,092
39

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
https://github.com/Prasad2001sk/Compi...
Follow instagram
https://www.instagram.com/computer_sc...
Follow My Linkdin profile:
  / prasad-kulkarni-9076051a3  

Calculate Number of words in string using c programming video link-
   • Calculate Number of words in string u...