<?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>Calculator</title>
		<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator</link>
		<description>Posts in the discussion thread &quot;Calculator&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Mon, 15 Jun 2026 02:21:26 +0000</lastBuildDate>
		
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196573</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196573</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 12:29:48 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>adding this</p> <p>result = 0;</p> <p>fixed my unrecognized operation for result&#8230;<br /> why do i need</p> <p>result = 0; if result = my firstnumber + my second number..</p> <p>default:<br /> Console.WriteLine(&quot;NA OPERATION&quot;);<br /> result = 0;<br /> break;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196572</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196572</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 12:24:45 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>wait wt&#8230;.</p> <p>what do these 2 lines do?</p> <p>string userinput = Console.ReadLine(); // i thought this one lets you type&#8230; cause u cant type if it was int userinput..<br /> int firstnum = Convert.ToInt32(userinput); //this converts the typing into a number. wtf</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196570</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196570</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 12:23:09 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>would have never wrote that</p> <p>onsole.WriteLine(&quot;Enter the first number: &quot;);<br /> int number1 = Convert.ToInt32(Console.ReadLine());</p> <p>Console.WriteLine(&quot;Enter the second number: &quot;);<br /> int number2 = Convert.ToInt32(Console.ReadLine());</p> <p>i have it like this.. um..</p> <p>Console.Write(&quot;Enter the first number: &quot;);<br /> string userinput = Console.ReadLine();<br /> int firstnum = Convert.ToInt32(userinput);</p> <p>Console.Write(&quot;Enter the second number: &quot;);<br /> string userinputtwo = Console.ReadLine();<br /> int secondnum = Convert.ToInt32(userinputtwo);</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196568</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196568</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 12:22:12 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>result = (int)Math.Pow(number1, number2);</p> <p>i would have never wrote that&#8230;.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196565</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196565</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 12:14:03 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>i jsut looked at the code and u used</p> <p>case &quot;+&quot; .&#8230; . .&#8230; .. &lt;&#8212; u never taught that&#8230;<br /> i even google searched it and found that, but i wouldn't think i could use it cause it wasn't in the teachings</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196562</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196562</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 12:08:04 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Console.Write(&quot;Enter the first number: &quot;);<br /> string userinput = Console.ReadLine();<br /> int firstnum = Convert.ToInt32(userinput);</p> <p>Console.Write(&quot;Enter the second number: &quot;);<br /> string userinputtwo = Console.ReadLine();<br /> int secondnum = Convert.ToInt32(userinputtwo);</p> <p>Console.Write(&quot;Enter the operation (+, -, *, /, or ^)&quot;);<br /> string operation = Console.ReadLine();<br /> int answer = Convert.ToInt32(operation);</p> <p>if (answer == &quot;+&quot;)<br /> {<br /> Console.WriteLine(firstnum + secondnum);<br /> }<br /> else if (answer == &quot;-&quot;)<br /> {<br /> Console.WriteLine(firstnum - secondnum);<br /> }<br /> else<br /> {<br /> Console.WriteLine(&quot;enter number&quot;);<br /> }</p> <p>Console.WriteLine(+firstnum + &quot; &quot; + operation + &quot; &quot; + secondnum + &quot;= &quot; + operation);</p> <p>yeah i tried everything.. it wont letme use ==</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196556</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196556</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 11:59:37 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>im done for now&#8230;<br /> just making me to mad.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196551</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196551</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 11:52:28 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Console.Write(&quot;Enter the first number: &quot;);<br /> string userinput = Console.ReadLine();<br /> int firstnum = Convert.ToInt32(userinput);</p> <p>Console.Write(&quot;Enter the second number: &quot;);<br /> string userinputtwo = Console.ReadLine();<br /> int secondnum = Convert.ToInt32(userinputtwo);</p> <p>Console.Write(&quot;Enter the operation (+, -, *, /, or ^)&quot;);<br /> string operation = Console.ReadLine();</p> <p>string answer = operation;<br /> if (answer == &quot;+&quot;)<br /> {<br /> Console.WriteLine(firstnum + secondnum);<br /> }<br /> else if (answer == &quot;-&quot;)<br /> {<br /> Console.WriteLine(firstnum - secondnum);<br /> }<br /> else<br /> {<br /> Console.WriteLine(&quot;enter number&quot;);<br /> }</p> <p>Console.WriteLine(+firstnum + &quot; &quot; + operation + &quot; &quot; + secondnum + &quot;=&quot;);</p> <p>why does it keep writing the answer above the firstnum + secondnum&#8230;&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196548</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196548</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 11:46:32 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>screww the case for now..if is taking me like 2 hours!!!!!!!!!!!!!!!</p> <p>string answer = operation;<br /> if (answer == &quot;+&quot;)<br /> {<br /> Console.WriteLine(firstnum + secondnum);<br /> }<br /> else if (answer == &quot;-&quot;)<br /> {<br /> Console.WriteLine(firstnum - secondnum);<br /> }<br /> else<br /> {<br /> Console.WriteLine(&quot;enter number&quot;);<br /> }</p> <p>Console.WriteLine(+ firstnum + &quot; &quot; + operation + &quot; &quot; + secondnum + &quot;=&quot;);</p> <p>Console.ReadKey();</p> <p>i dont think this is normal. taking 2 hours to mae a simple calculator</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196533</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196533</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 11:29:24 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>this is the only ghetto way imtrying to do it =/.</p> <p>int add = firstnum + secondnum;</p> <p>switch(add)<br /> {<br /> case 1:<br /> Console.WriteLine(firstnum + secondnum);<br /> break;</p> <p>int sub = firstnum - secondnum;<br /> switch(sub)<br /> {<br /> case 1:<br /> Console.WriteLine(firstnum + secondnum);<br /> break;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196499</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196499</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 11:14:55 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>you didnt show us how to do userinput with casses. which is myproblem.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196491</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196491</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 11:13:37 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>i dont understadn how u use case 1,2,3,4,5,</p> <p>if user enters number 1 case 1 shows&#8230;.<br /> i dont get how u make it like add&#8230; and subtract.<br /> look what i have..</p> <p>int add = 1;<br /> int sub = 2;<br /> switch(add == 1 || sub == 2)<br /> {<br /> case 1:<br /> Console.WriteLine(firstnum + secondnum);<br /> break;</p> <p>case 2:<br /> Console.WriteLine(firstnum - secondnum);<br /> break;<br /> }</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196477</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196477</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 11:04:42 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>making progress</p> <p>int answer = firstnum + secondnum;</p> <p>switch(answer)<br /> {<br /> case 1:<br /> Console.WriteLine(firstnum + secondnum);<br /> break;<br /> }</p> <p>Console.WriteLine(+ firstnum + &quot; &quot; + operation + &quot; &quot; + secondnum + &quot;=&quot; + answer);</p> <p>Console.ReadKey();</p> <p>just have to figure out how to make it subtract, multiply etc.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196468</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196468</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 10:54:30 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>sorry i mean this line gives me error<br /> int operation = Convert.ToInt32(userinputthree);<br /> making me mad</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196466</guid>
				<title>(no title)</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196466</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 10:53:08 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>gonna be a little hard to figure out how to add them together&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-1075122#post-2196465</guid>
				<title>Calculator</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-1075122/calculator#post-2196465</link>
				<description></description>
				<pubDate>Mon, 05 Jan 2015 10:52:41 +0000</pubDate>
				<wikidot:authorName>yurij</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>doing the calculator part. pretty hard..<br /> =/.</p> <p>Console.WriteLine(&quot;Enter the first number: &quot;);<br /> string userinput = Console.ReadLine();<br /> int firstnum = Convert.ToInt32(userinput);</p> <p>Console.WriteLine(&quot;Enter the second number: &quot;);<br /> string userinputtwo = Console.ReadLine();<br /> int secondnum = Convert.ToInt32(userinputtwo);</p> <p>Console.WriteLine(&quot;Enter the operation (+, -, *, /, or ^)&quot;);<br /> string userinputthree = Console.ReadLine();<br /> int operation = Convert.ToInt32(userinputthree);</p> <p>Console.WriteLine(firstnum + operation + secondnum);</p> <p>Console.ReadKey();</p> <p>i keep getting an error on this line!</p> <p>Console.WriteLine(firstnum + operation + secondnum);</p> <p>im just trying to make it all show up in console on one line</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>