Q- Create a "counter" from 0:limit-1 (for example if you choose 3 it will display 0,1,2). The length of counter is not determined in the program and it should be determined when it is being run and the inputs can differ from each other
this is the solution on python but i want to compute it on matlab. how do i do that?
for i in range(3):
print(3-i)
for s in range(3,-1,-1)
print s
so the answer is :
3
2
1
3
2
1
0