https://online.codingblocks.com/app/player/58724/content/27238/4713/code-challenge
this questions editorial contains an if in which it checks n that is the orignal no /10 and cheecks if it is zero what is it doing please explain
https://online.codingblocks.com/app/player/58724/content/27238/4713/code-challenge
this questions editorial contains an if in which it checks n that is the orignal no /10 and cheecks if it is zero what is it doing please explain
how to solve using ARRAYS BOTHH USIING char and int arrays
hi @AyushKumar9032 if (n/10 == 0) basically checks if it is a one digit number or not
if it is a one digit number, for eg 6 then num/10 will be 0 and we dont have to do anything in that case.