# Homework 2 Released

 3 The second unit and homework have been released. The second homework assignment is due at Tuesday 23:59 UTC. Be sure to check the forums if you get stuck, and try not to get frustrated on starred problems. asked 28 Feb '12, 21:41 PeterUdacity ♦♦ 35.9k●73●219●331 accept rate: 0% Awesome! I'll get started on it. Thanks for the heads-up. (29 Feb '12, 00:47) Krishna Sampath 1 Hello Peter! please be careful linking date to wolfram alpha with that format. 3/6/12 is an ambiguous date so WA is taking June, therefore it says 3 months 5 days 8 hours... in the future which is wrong (29 Feb '12, 10:04) JuanMa I think it depends on how your region writes dates. I'll just stop using Wolfram Alpha in the future. (01 Mar '12, 15:11) PeterUdacity ♦♦

 2 @graemeblake, what we should print out is actually the full multiplication table leading up to the number shown. In your example, you still need to print the "=" followed by the result. In short, it should look like this: 1*1 = 1 1*2 = 2 1*3 = 3 2*1 = 2 2*2 = 4 2*3 = 6 3*1 = 3 3*2 = 6 3*3 = 9 Also, a formatting tip: you can just include manual line break tags (< br >, with no spaces) after each line. to ensure that your choice of new lines are preserved. answered 29 Feb '12, 09:54 Krishna Sampath 776●1●7●32 Thanks, that's what I ended up doing for the assignment. Good to know about the spacing. (29 Feb '12, 19:05) Graeme Does it matter if it is 1*1 = 1 or 1 * 1 = 1 as given in the example in the code? (29 Feb '12, 19:09) fnenu-1 ♦♦ Would be interesting if missing spaces lead to a false grading. I think there should be some tolerance or the desired output should be absolutely clear. (01 Mar '12, 06:26) Sebastian We... I think spacing matters. 1 * 1 = 1 may be different that 1*1=1. Try to print them as shown in videos. (01 Mar '12, 06:39) BogdanD It is shown with spaces before and after the asterisks and the equal sign, right? (01 Mar '12, 06:44) Sebastian We...
 0 Thanks @PeterUdacity! answered 28 Feb '12, 21:43 Rob Barnes-3 ♦ 19.1k●10●68●205
 0 thanks @peterUdacity answered 29 Feb '12, 00:28
 0 The final questions seems to be missing an extended example. In the video, David mentioned there would be a larger set of numbers so we could see exactly how the order goes. As it is, the question isn't clear. For example, if the input if three, should the program print: 1 * 1 || 1 * 2 || 1 * 3 || 2 * 1 || 2 * 2 || 2 * 3 || 3 * 1 || 3 * 2 || 3 * 3 Or something different? Thanks! (sorry for the horizontal bars. I wanted to display everything vertically, but the formatted reverted to a single line.) answered 29 Feb '12, 01:29 Graeme 5.9k●21●48●95 Use double space after the word to enter a new line. (29 Feb '12, 10:52) Mukesh Agarw... The problem with using two returns (I assume you don't mean the space bar), is that every single line will be double-spaced. If you are writing a few paragraphs, that's fine -- but here, where we have a long vertical list, I'd say it's better just to use line break tags, to avoid taking up twice as much space. (29 Feb '12, 11:06) Krishna Sampath It is the space bar. A double space at the end of a line followed by a return gives you a newline. this is followed by two spaces and a return but this is followed by two returns and this is the line afterwards. (29 Feb '12, 19:08) fnenu-1 ♦♦
 0 The link to WolframAlpha seems to be wrong, the date is off for about 1 month and something. answered 01 Mar '12, 15:09 Carlos Sujou... 43●3
Question text:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "Title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

×15,266
×1,718
×42