Thursday, 21 January 2016

NEw programme



   Hey guys recently i have got a new question behind solving a programme
the programme is to print the following output Pattern 
    00001
    00021
    00321
    04321
    54321
  So i got a logic for it

"" 
As Here I have entered  all the  no as 0 and only the last column 1
and then i have just started from below and taken i=4   and moreover taken an constant integer value as k=0  and then took a j loop with j=k  and as i will decrease so as also k will decrease 
and that would be printing all no from 5-1 


""Have a look on the program Below 



""


And the output of it