Rehman Tabasum
Followers: 0 Following: 0
Feeds
已回答
“if” statement using “or” operator.
i=5 while i>=-1 pause(1) fprintf('%d\n',i) i=i-1 if i==0 break end end this is my cod...
“if” statement using “or” operator.
i=5 while i>=-1 pause(1) fprintf('%d\n',i) i=i-1 if i==0 break end end this is my cod...
3 years 前 | 0
已回答
I know this might easy for you, but I won't to countdown from 10:1:-1 i know to to do this loop. what I don't know is how to pause each number by 1 second
for k = 10:-1:0 disp(k) pause(1) end
I know this might easy for you, but I won't to countdown from 10:1:-1 i know to to do this loop. what I don't know is how to pause each number by 1 second
for k = 10:-1:0 disp(k) pause(1) end
3 years 前 | 0