At 6:58 how is number stored as 6 and why we have to subtract 6-2. Please help.
Pattern Number Pyramid
hello @yajurkhurana
after print increasing order i.e 3 4 5 our value of val
variable will become 6 right?
now we have to print decreasing order and starting value of decreasing order is 4 i.e (val-2 , 6-2) that why we are subtracting 2 from 6.
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.