implementing a script that asks f

2 次查看(过去 30 天)
Hi i think the way to do this is a while loop im just not sure about part of it:
whenever the script is an odd number , i would like the script to keep asking for user input
n=0
while (dont know what to put here)
n=n+1
thank you

采纳的回答

TADA
TADA 2019-1-25
input Function Documentation
modulo Function Documentation, Or You Can Search In Google And Find At Least Half A Dozen Links To File Exchange Implementations Of Iseven/isodd (Haven't Looked At The Codes, but It's Very Simple To Implement)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by