if you look at my code if don give %mod while summing the
count it gives error why??
Https://ide.codingblocks.com/s/297163
@sauravzt7 its running fine for me. Can you please share the line number and the modification you did when you got the error?
@sauravzt7
In line number around 17,
of your code
You have misplaced the brackets::
Your code reads:
(count[i]=count[i-1]+count[i-m])%mod
Correct it to
…
count[i]=(count[i-1]+count[i-m])%mod
Hit a like button if it works for u