Student Support Forum: 'Syntax error (Beginner)' topicStudent Support Forum > General > Archives > "Syntax error (Beginner)"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Riccardo 04/01/13 8:13pm Hi! I'm learning how to use Math in College and I've been trying to make this method work, but it seems to be some kind of syntax error since it always returns Null. The idea is to have a sorted list of numbers (lower to greater), add another number at the end of the list and compare it to the numbers at the list until it finds its correct position. For instance: L={1,2,4,5}; Append[L, 3]; L={1,2,4,5,3} After this i use a For to compare the 3 with all the other numbers If 3<5 -> L={1,2,4,3,5} If 3<4 -> L={1,2,3,4,5} I attached the file. I apologize if this isn't the right area to ask such a rookie question, but this is my first time asking in these forums, if that's the case please let me know. Thanks for the help! Attachment: Sorting.nb, URL: ,

 Subject (listing for 'Syntax error (Beginner)') Author Date Posted Syntax error (Beginner) Riccardo 04/01/13 8:13pm Re: Syntax error (Beginner) Forum Modera... 04/02/13 10:27am
 Next Comment > Help | Reply To Topic