<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PHP-and-MySQL%2FC2%2FArithmatic-Operators%2FEnglish</id>
		<title>PHP-and-MySQL/C2/Arithmatic-Operators/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PHP-and-MySQL%2FC2%2FArithmatic-Operators%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C2/Arithmatic-Operators/English&amp;action=history"/>
		<updated>2026-04-08T20:00:30Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C2/Arithmatic-Operators/English&amp;diff=522&amp;oldid=prev</id>
		<title>Chandrika: Created page with '{|Border=1 !Time !Narration |- |0:00 |Welcome to this tutorial on basic arithmetic operators. |- |0:03 |I'll first go through plus, minus, multiply and divide operations. |- |0:0…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C2/Arithmatic-Operators/English&amp;diff=522&amp;oldid=prev"/>
				<updated>2012-11-29T06:31:14Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;{|Border=1 !Time !Narration |- |0:00 |Welcome to this tutorial on basic arithmetic operators. |- |0:03 |I&amp;#039;ll first go through plus, minus, multiply and divide operations. |- |0:0…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{|Border=1&lt;br /&gt;
!Time&lt;br /&gt;
!Narration&lt;br /&gt;
|-&lt;br /&gt;
|0:00&lt;br /&gt;
|Welcome to this tutorial on basic arithmetic operators.&lt;br /&gt;
|-&lt;br /&gt;
|0:03&lt;br /&gt;
|I'll first go through plus, minus, multiply and divide operations.&lt;br /&gt;
|-&lt;br /&gt;
|0:09&lt;br /&gt;
|These are written as p lus, minus, multiply as an asterisk and divide as forward slash.&lt;br /&gt;
|-&lt;br /&gt;
|0:16&lt;br /&gt;
|So, I will have 2 variables.&lt;br /&gt;
|-&lt;br /&gt;
|0:19&lt;br /&gt;
|I'll create a variable called &amp;quot;num1&amp;quot; and I'll save that as value equal to &amp;quot;10&amp;quot; and &amp;quot;num2&amp;quot; is equal to &amp;quot;2&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|0:28&lt;br /&gt;
|So, these are both integer numbers with no decimal point.&lt;br /&gt;
|-&lt;br /&gt;
|0:33&lt;br /&gt;
|Okay, now, say I want to add &amp;quot;num1&amp;quot; and &amp;quot;num2&amp;quot; together.&lt;br /&gt;
|-&lt;br /&gt;
|0:38&lt;br /&gt;
|So I echo out the answer of &amp;quot;num1&amp;quot; added to &amp;quot;num2&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|0:44&lt;br /&gt;
|Let's test it out.&lt;br /&gt;
|-&lt;br /&gt;
|0:50&lt;br /&gt;
|So, that's &amp;quot;12&amp;quot;.  10 and 2, num1 and num2, when 10 and 2 are added, the answer is &amp;quot;12&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|0:54&lt;br /&gt;
|Okay now let's try minus. We will just replace the minus symbol there.&lt;br /&gt;
|- &lt;br /&gt;
|1:01&lt;br /&gt;
|Refresh and that will be &amp;quot;8&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|1:04&lt;br /&gt;
|Now lets try multiplication.  10 times 2 is 20 and we've got &amp;quot;20&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|1:10&lt;br /&gt;
|Next, 10 divided by 2 is just half of 10 which is &amp;quot;5&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|1:16&lt;br /&gt;
|Now, what we can do is we can add something on the end of this.&lt;br /&gt;
|-&lt;br /&gt;
|1:23&lt;br /&gt;
|So, let's say this is divided by num2. &lt;br /&gt;
|-&lt;br /&gt;
|1:27&lt;br /&gt;
|Now, what I think this operation will do is, it will add &amp;quot;num1&amp;quot; and &amp;quot;num2&amp;quot;, so that is add 10 and 2 which will give us 12 and then 12 divided by 2.&lt;br /&gt;
|-&lt;br /&gt;
|1:39&lt;br /&gt;
|So, 12 divided by 2 should give 6.&lt;br /&gt;
|-&lt;br /&gt;
|1:42&lt;br /&gt;
|But what this actually does is it takes num2 and divides it by num2 which will give 1 and add num1 to that.&lt;br /&gt;
|-&lt;br /&gt;
|1:55&lt;br /&gt;
|So, that means, instead of 6 we will get 11.&lt;br /&gt;
|-&lt;br /&gt;
|2:00  &lt;br /&gt;
|Now, the reason for this is that division operator will always work before addition operator.  The same with multiply &lt;br /&gt;
|-&lt;br /&gt;
|2:09&lt;br /&gt;
|Now, to solve this, we should put brackets.&lt;br /&gt;
|-&lt;br /&gt;
|2:14&lt;br /&gt;
|The brackets will say - we'll take this operation first, do whatever is in here and then continue to divide by whatever this could be an integer or a variable. &lt;br /&gt;
|-&lt;br /&gt;
|2:27&lt;br /&gt;
|So, here what it will do is num1 plus num2 which is 10 plus 2 which gives us 12 divided by 2 which should give us 6.&lt;br /&gt;
|-&lt;br /&gt;
|2:38&lt;br /&gt;
|Let's refresh that and we can see that it worked!&lt;br /&gt;
|-&lt;br /&gt;
|2:43&lt;br /&gt;
|So, these are the basic arithmetic operators which are simple to use.&lt;br /&gt;
|-&lt;br /&gt;
|2:47&lt;br /&gt;
|If you come across any problems, always  verify your calculations with a calculator to make sure they're working.&lt;br /&gt;
|-&lt;br /&gt;
|2:55&lt;br /&gt;
|We'll see a few more of these soon.&lt;br /&gt;
|-&lt;br /&gt;
|2:57&lt;br /&gt;
|We'll learn about the increment arithmetic operator which increments by 1 but I'll use that a little later. &lt;br /&gt;
|-&lt;br /&gt;
|3:05&lt;br /&gt;
|So, practice these and make sure you learn them well.&lt;br /&gt;
|-&lt;br /&gt;
|3:09&lt;br /&gt;
|Thanks for watching.  This is Arvind dubbing for the Spoken Tutorial project.&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>