<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>swap 2 numbers Archives -</title>
	<atom:link href="https://mitindia.in/tag/swap-2-numbers/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/swap-2-numbers/</link>
	<description></description>
	<lastBuildDate>Sat, 26 Nov 2016 07:24:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mitindia.in/wp-content/uploads/2023/03/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>swap 2 numbers Archives -</title>
	<link>https://mitindia.in/tag/swap-2-numbers/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>PHP-Examples</title>
		<link>https://mitindia.in/php-examples/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Thu, 30 Jun 2016 08:13:10 +0000</pubDate>
				<category><![CDATA[PHP-MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[swap 2 numbers]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=191</guid>

					<description><![CDATA[<p>Here are some basic programs using PHP 1. Arithmetic operation program using PHP &#60;?php $str=" Arithmetic operation"; $a=4; $b=5; $c=$a+$b; echo "Sum=", $c; $c=$a-$b; echo "&#60;br&#62;Sub=", $c; $c=$a*$b; echo "&#60;br&#62;Mul=", $c; $c=$a/$b; echo "&#60;br&#62;Div=", $c; ?&#62; 2. PHP program to print person name and age. &#60;?php $name="John"; $age=20; echo "Person name=", $name; echo "&#60;br&#62;Age=", $age; [&#8230;]</p>
<p>The post <a href="https://mitindia.in/php-examples/">PHP-Examples</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3 class="post-title entry-title">Here are some basic programs using PHP</h3>
<div id="post-body-4984984352375892415" class="post-body entry-content">
<div dir="ltr">
<p>1. Arithmetic operation program using PHP</p>
<pre>&lt;?php
$str=" Arithmetic operation";
$a=4;
$b=5;
$c=$a+$b;
echo "Sum=", $c;
$c=$a-$b;
echo "&lt;br&gt;Sub=", $c;
$c=$a*$b;
echo "&lt;br&gt;Mul=", $c;
$c=$a/$b;
echo "&lt;br&gt;Div=", $c;
?&gt;</pre>
<p>2. PHP program to print person name and age.</p>
<pre>&lt;?php
$name="John";
$age=20;
echo "Person name=", $name;
echo "&lt;br&gt;Age=", $age;
?&gt;</pre>
<p>3. PHP Program to SWAP 2 Numbers</p>
<pre>&lt;?php
$a=4;
$b=5;
echo "A: before swap=", $a;
echo "&lt;br&gt;B: before swap=", $b;
$c=$a;
$a=$b;
$b=$c;
echo "&lt;br&gt;A: After swap=", $a;
echo "&lt;br&gt;B: After swap=", $b;
?&gt;</pre>
<p>4.  PHP Program to test whether the number is +ve or -ve.</p>
<pre>&lt;?php
$a=-10;
if ($a&gt;0)
{
echo "Number is positive";
}
else
{
echo "Number is negative";
}
?&gt;</pre>
<p>5. PHP program to test whether the person is Eligible to vote or not.</p>
<pre>&lt;?php
$age=19;
$name="John";
if ($age&gt;=18)
{
echo $name, " is eligible for vote";
}
else
{
echo $name, " is NOT eligible for vote";
}
?&gt;</pre>
</div>
</div>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fphp-examples%2F&amp;linkname=PHP-Examples" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Fphp-examples%2F&amp;linkname=PHP-Examples" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Fphp-examples%2F&#038;title=PHP-Examples" data-a2a-url="https://mitindia.in/php-examples/" data-a2a-title="PHP-Examples"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/php-examples/">PHP-Examples</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
