<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mman2112</id>
		<title>ComputerCraft Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mman2112"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/Special:Contributions/Mman2112"/>
		<updated>2026-07-11T15:02:39Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Calculator_Tutorial&amp;diff=1482</id>
		<title>Calculator Tutorial</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Calculator_Tutorial&amp;diff=1482"/>
				<updated>2012-05-05T23:16:04Z</updated>
		
		<summary type="html">&lt;p&gt;Mman2112: tutorial on several basic functions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 -- anything after two dashes is a comment, and wont be compiled.&lt;br /&gt;
 --[[ this is also a comment&lt;br /&gt;
 and so is this&lt;br /&gt;
 ]]--&lt;br /&gt;
 &lt;br /&gt;
 --this tutorial will teach you the basics of the print() and read() functions, if statements, as well as some variable use and math operations.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 print(&amp;quot;Do you want to add, subtract, multiply or divide?&amp;quot;) -- this code displays the question within the quotation marks&lt;br /&gt;
 op = read() -- this code creates a variable called 'op', the read() function stalls the program to accept user input, which is stored in op&lt;br /&gt;
 print(&amp;quot;&amp;quot;) -- just gives us some space to work with&lt;br /&gt;
 &lt;br /&gt;
 print(&amp;quot;what is the first number to be operated on?&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 num1 = read() -- accepts the first number to be stored in the variable 'number1'&lt;br /&gt;
 print(&amp;quot;&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 print(&amp;quot;and the second number?&amp;quot;)&lt;br /&gt;
 num2 = read()&lt;br /&gt;
 print(&amp;quot;&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 -- now we operate on the number depending on what the user typed first&lt;br /&gt;
 &lt;br /&gt;
 if op == &amp;quot;add&amp;quot; then -- if you need help with conditional statements, see this page: [http://www.troubleshooters.com/codecorn/lua/luaif.htm]&lt;br /&gt;
  result = num1+num2&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 if op == &amp;quot;multiply&amp;quot; then&lt;br /&gt;
  result = num1*num2 -- asterisk represents multiply&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 if op == &amp;quot;divide&amp;quot; then&lt;br /&gt;
  result = num1/num2&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 if op == &amp;quot;subtract&amp;quot; then&lt;br /&gt;
  result = num1-num2&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mman2112</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User_talk:Mman2112&amp;diff=1476</id>
		<title>User talk:Mman2112</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User_talk:Mman2112&amp;diff=1476"/>
				<updated>2012-05-05T22:45:14Z</updated>
		
		<summary type="html">&lt;p&gt;Mman2112: Created page with &amp;quot;my goal is to add some missing pages to the wiki, hopefully others will improve upon them.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;my goal is to add some missing pages to the wiki, hopefully others will improve upon them.&lt;/div&gt;</summary>
		<author><name>Mman2112</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Os.clock&amp;diff=1474</id>
		<title>Os.clock</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Os.clock&amp;diff=1474"/>
				<updated>2012-05-05T22:40:31Z</updated>
		
		<summary type="html">&lt;p&gt;Mman2112: use of os.clock()&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Returns the amount of time the computer craft computer has been running, note that this may not be the amount of time the program has been running. the function os.clock() is useful for debugging, for example to see how long a custom function takes to execute use the following code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;x = os.clock() -- compensates for time already passed&lt;br /&gt;
 myfunction() -- function to be tested&lt;br /&gt;
 y = (os.clock() - x) -- calculates time change&lt;br /&gt;
 print(y)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mman2112</name></author>	</entry>

	</feed>