<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>LoopingLesson: Triangle problem</title>
		<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem</link>
		<description>Posts in the discussion thread &quot;LoopingLesson: Triangle problem&quot; - How I FINALLY figured out how to do this on my own.</description>
				<copyright></copyright>
		<lastBuildDate>Wed, 09 Sep 2026 10:14:26 +0000</lastBuildDate>
		
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-620751#post-1700029</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem#post-1700029</link>
				<description></description>
				<pubDate>Thu, 31 Jan 2013 22:09:25 +0000</pubDate>
				<wikidot:authorName>Sorthious</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>it does sound interesting, and yes, i've seen Math.Sqrt(); before. Just not very familiar with it&#8230;.I am going to keep this post in mind for later&#8230;after I review those lessons I'll come back and give it a shot.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-620751#post-1700025</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem#post-1700025</link>
				<description></description>
				<pubDate>Thu, 31 Jan 2013 22:06:30 +0000</pubDate>
				<wikidot:authorName>Sorthious</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>yeah&#8230;took me about 40mins&#8230;but I had some basic understanding of C# when I started&#8230;been helping script on Allure of The Unknown, an Ultima Online server. It's easy to see whats going on and editing some things, but there are sooooo many .cs scripts its hard to track down where things happen. I'm getting better though. If people on here want to see some game scripts in action, Ultima online is a great way to check it out&#8230;you can create your own Home Server and tweak it all you want.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-620751#post-1700017</guid>
				<title>Re: LoopingLesson: Triangle problem</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem#post-1700017</link>
				<description></description>
				<pubDate>Thu, 31 Jan 2013 21:57:25 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>OK, if you want something that <em>will</em> challenge you without a doubt, try to make code that will draw a circle, based on a radius, measured in characters. But also so that it's dynamic (you can put in different radius values and see different circles appear.) Something like if <em>r == 5</em>, this would be drawn:</p> <div class="code"> <pre><code> ****** ********** ************ ************ ********** ******</code></pre></div> <p>To be fair, this is pretty tough. And I'm not sure that in the place where this tutorial appears, if you even really have enough knowledge to do it. It might require stuff from future tutorials.</p> <p>Don't really try it.</p> <p>But if you do, remember that characters on the console are roughly twice as tall as they are wide. And you'll probably use the <em>Math.Sqrt()</em> method. (That's the part that I'm not sure if you've seen or not yet.)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-620751#post-1700009</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem#post-1700009</link>
				<description></description>
				<pubDate>Thu, 31 Jan 2013 21:52:57 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hmm&#8230; you're right. My intention though, was to say, &quot;Don't waste your entire life on it.&quot; Not, &quot;Normal people can do this in less than 10 minutes.&quot; It would probably be worth going in and saying it took me much more than 10 minutes originally, as well. :D</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-620751#post-1699992</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem#post-1699992</link>
				<description></description>
				<pubDate>Thu, 31 Jan 2013 21:36:47 +0000</pubDate>
				<wikidot:authorName>Sorthious</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>yes&#8230;you said:</p> <p>''If you try for 10 minutes, and you're still stuck, don't worry. Take a look at the hidden code here:&quot;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-620751#post-1699991</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem#post-1699991</link>
				<description></description>
				<pubDate>Thu, 31 Jan 2013 21:33:36 +0000</pubDate>
				<wikidot:authorName>Sorthious</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Yeah&#8230;I think it would be much easier to make these concepts more concrete in ones mind if there are more excercises for learners to try. Start off with super simple excercises then move on to more complex uses of a particular command/concept. Like you just did&#8230;moved from Triangle to Checkerboard. Then maybe advice users to try to come up with other shapes on their own. I've tried other lessons but they are so dry and convoluted, I would have to read over them sooooo many times to undertand what was going on.</p> <p>I think its better to explain things to people like their 10, where possible. Break it down into the simplest terms. I play guitar and sometimes forget when I'm teaching to dumb it down and not assume knowledge on the part of the person TRYING to learn. You've done a really good job of it btw!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-620751#post-1699985</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem#post-1699985</link>
				<description></description>
				<pubDate>Thu, 31 Jan 2013 21:23:58 +0000</pubDate>
				<wikidot:authorName>Sorthious</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Stumped me for a few mins&#8230;but took less time than 1st one lol.</p> <div class="code"> <pre><code>for (int columns = 0; columns &lt; 4; columns++) { if ((columns % 2) == 0) { Console.Write(&quot; &quot;); } else { Console.Write(&quot; &quot;); } for (int rows = 0; rows &lt; 4; rows++) { Console.Write(&quot;*&quot;); Console.Write(&quot; &quot;); } Console.WriteLine(); }</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-620751#post-1699948</guid>
				<title>Re: LoopingLesson: Triangle problem</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem#post-1699948</link>
				<description></description>
				<pubDate>Thu, 31 Jan 2013 20:45:01 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Oh and nice work on the little homework assignment!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-620751#post-1699946</guid>
				<title>Re: LoopingLesson: Triangle problem</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem#post-1699946</link>
				<description></description>
				<pubDate>Thu, 31 Jan 2013 20:44:28 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If you're up for a new challenge, try printing out a checkerboard pattern like this:</p> <div class="code"> <pre><code>* * * * * * * * * * * * * * * *</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-620751#post-1699944</guid>
				<title>Re: LoopingLesson: Triangle problem</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem#post-1699944</link>
				<description></description>
				<pubDate>Thu, 31 Jan 2013 20:43:01 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Wait, I didn't say it should only take 10 minutes, did I?</p> <p>This was a homework assignment I had in my first official CS class. I remember spending <em>days</em> trying to get it to work!</p> <p>With respect to your comment about it being easier to learn topics if you're presented with a goal, I'm assuming you're talking about little exercises like this. I actually really want to go back through here and do a lot more with that in these tutorials. (Not just the C# ones either. Even the XNA ones.)</p> <p>For what it's worth, I got the same feedback when I was writing <a href="http://starboundsoftware.com/books/c-sharp/">my C# book</a>. I have a whole ton of problems to try in it, for the people who go the book route.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-620751#post-1699877</guid>
				<title>LoopingLesson: Triangle problem</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-620751/loopinglesson:triangle-problem#post-1699877</link>
				<description></description>
				<pubDate>Thu, 31 Jan 2013 19:06:43 +0000</pubDate>
				<wikidot:authorName>Sorthious</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Took me a hell of a lot longer than 10mins, but I did come up with a solution on my own(im a little slow, LOL.) I just playing around with the script and observing what was working and what was not, and by addressing each problem 1x1 I figured out what I was doing wrong&#8230;anyways, here is what I came up with&#8230;slightly dif than what you did:</p> <div class="code"> <pre><code>int spaceCounter = 0; for (int columns = 0; columns &lt;= 11; columns++) { for (int space = 6; space &gt;= spaceCounter;space--) { Console.Write(&quot; &quot;); } for (int rows = 0; rows &lt; columns + 1; rows++) { if ((columns % 2) == 0) { columns++; continue; } Console.Write( &quot;*&quot; ); } Console.WriteLine(); spaceCounter++;</code></pre></div> <p>I made use of the Mod operator you showed us. This really helped me out with learning this&#8230;ty for that excercise. It's much easier to learn topics like this if we are presented with an end goal. (^8</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>