implementing a script that asks f

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

 Respuesta aceptada

TADA
TADA el 25 de En. de 2019

0 votos

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)

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de En. de 2019

Editada:

el 27 de En. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by