Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested Multiplication

Status
Not open for further replies.

tmannian

Aerospace
May 27, 2007
1
Ok, maybe im missing something basic but, i am trying to use the while command to define a variable that changes each iteration, and i can get that done but i cannot figure how to store each term of the variable, or is that impossible?

basically the code im using is,

while r>-1
t=y^r
r=r-1

and from this i want to store each term of t, but i cannot figure how i would do this, so any suggestions would be greatly appreciated
 
Replies continue below

Recommended for you

You're supposed to be using FOR loops for something like that.

TTFN

FAQ731-376


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor