Bhaiya, your explanation is really awesome. The icing on the cake is your English you were too good. just tell me, if I work hard will I be able to speak English like you confidently
I have a small doubt When "num" has only one digit after 1st inner while loop why can't we use "if" instead of "while" ? Although I have debugged and saw the difference in the output But not able to figure out why is it while instead of if
def fact(n); f=1 If n==0; return 1 for i in range(1,n+1); f=f*I return f n=int(input("enter no:"); factorial=fact(n) print(factorial) It's right or not ? Python program check it
Hi Parth, your approach is not wrong, it's just that this method will not work in case of larger number as it stores the answer in one variable which can create trouble.Just try to understand this method,I bet you will never use that one!
How would you do it, if you could only store numbers from 0 to 9 on each []. Because I honestly don't know how to put them together to make the limits of the loops.
In that case u better take all the possibilities of magic matrix.There should be of 8 Types and after that u can solve it easily by using abs function and finding the min
Hi devil, if the number is less than 10, it will give value as 0.___ so by default C++ considers it's floor value which is 0.Hope it solves your doubt.
@@binarybeast2685 bhai aise kon samjhata hai sara variable ek saath inisialize kr na itna confusing bana diya pura code 3 baar dekhe phir samajh me aaya