Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
May 27, 2007
Messages
1
Location
AU
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
 
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

Back
Top