sir can you explain the last code why did sir used 2 while loop
Sir can you explain the last code why did sir used 2 while loop
hello @S18CRX0131
inside while loop is used to convert given binary number to decimal number.
now we have to do this for n such numbers. and thats is why we are using outer while loop.
outer while loop will run n times and in each iteration we will read binary number and using that inner while loop we will convert it to decimal and print it
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.