implementing a script that asks f

3 vues (au cours des 30 derniers jours)
Chloe St John
Chloe St John le 25 Jan 2019
Modifié(e) : Chloe St John le 27 Jan 2019
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

Réponse acceptée

TADA
TADA le 25 Jan 2019
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)
  1 commentaire
Chloe St John
Chloe St John le 25 Jan 2019
thanks sorted it !

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by