Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Nesting For loops or While loops' topicStudent Support Forum > General > "Nesting For loops or While loops"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Henry Lamb
09/24/03 7:46pm

You're getting error messages because you have syntax errors. Your code should read

For[i=1,i<15,
first=afttax[[i]];
For[j=1,j<years,
b[i,j]=first*(1+int)^j;
Print[b[i,j]],
j++],
i++]

You have to be careful about where you put the commas and semicolons.


URL: ,

Subject (listing for 'Nesting For loops or While loops')
Author Date Posted
Nesting For loops or While loops Ranga 09/11/03 00:45am
Re: Nesting For loops or While loops Henry Lamb 09/24/03 7:46pm
< Previous CommentHelp | Reply To Comment | Reply To Topic