Thread Subject:
Function ask for input

Subject: Function ask for input

From: Daniel

Date: 13 May, 2012 18:25:08

Message: 1 of 2

Dear all,

How can I write a function, let's call it "InsertNumbers", with one input parameter n. The function continuously should ask the user to input positive real numbers which will be stored in a vector. This process stops when the user types -1 or when n values have been inserted.

Thank you very much!

Subject: Function ask for input

From: dpb

Date: 13 May, 2012 18:47:05

Message: 2 of 2

On 5/13/2012 1:25 PM, Daniel wrote:
> Dear all,
>
> How can I write a function, let's call it "InsertNumbers", with one
> input parameter n. The function continuously should ask the user to
> input positive real numbers which will be stored in a vector. This
> process stops when the user types -1 or when n values have been inserted.
> Thank you very much!

Chill, dood. You done asked this only a few minutes ago...

--

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us