<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-5959783070182022566</atom:id><lastBuildDate>Sun, 01 Sep 2024 13:03:33 +0000</lastBuildDate><category>Data Structure</category><category>Linear search</category><category>linear search algo</category><category>lsearch</category><title>We are Developers</title><description></description><link>http://wearedevelopers.blogspot.com/</link><managingEditor>noreply@blogger.com (We are Developer)</managingEditor><generator>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5959783070182022566.post-2824886672775485169</guid><pubDate>Wed, 17 Oct 2012 04:34:00 +0000</pubDate><atom:updated>2012-10-16T21:34:19.136-07:00</atom:updated><title>Back Again !</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Wow its been some many months i have not posted on blog and this blog of me just have three post in it.&lt;br /&gt;
I wondered as i am in final year engg now and i have many frnds who&amp;nbsp;don&#39;t&amp;nbsp;know where to start with&amp;nbsp;programming&amp;nbsp;and learn more about new technologies so i think i should start blogging with all the things i know that &amp;nbsp;can help them to get more&amp;nbsp;knowledge&amp;nbsp;and get known to new technologies. I will start my telling how to get things searched how to use them and how to find help from others on those topics hope you will enjoy !!!!&lt;/div&gt;
</description><link>http://wearedevelopers.blogspot.com/2012/10/back-again.html</link><author>noreply@blogger.com (Ninad)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5959783070182022566.post-1534187011542882114</guid><pubDate>Tue, 11 Jan 2011 00:34:00 +0000</pubDate><atom:updated>2011-01-10T16:36:16.642-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Data Structure</category><category domain="http://www.blogger.com/atom/ns#">Linear search</category><category domain="http://www.blogger.com/atom/ns#">linear search algo</category><category domain="http://www.blogger.com/atom/ns#">lsearch</category><title>Linear Search:</title><description>&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;What is Linear Search?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If u read your reference book u will notice that there is a large explanation on LINEAR SEARCH. But Let Me tell u my answer to this question:-&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Linear search means for e.g. that we have to search an element &lt;b&gt;A&lt;/b&gt; in array &lt;b&gt;B&lt;/b&gt; which contains &lt;b&gt;N&lt;/b&gt; no of elements, So what a linear Search do is That it traverse all &lt;b&gt;N&lt;/b&gt; element of array &lt;b&gt;B&lt;/b&gt; &amp;amp; while traversing it also check whether each element of array &lt;b&gt;B == A&lt;/b&gt; &amp;amp; if it is equal then the location is Prompted else we say nothing is found&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
Program &amp;gt;&amp;gt;&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Program:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void main(){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;int arr[50],i,SIZE,ele;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;clrscr();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&quot;Enter Size of Array: &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;SIZE);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;clrscr();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&quot;ARRAY INITIALIZATION...\n\n&quot;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;for(i = 0 ; i &amp;lt; SIZE; i++){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Enter Element at Position %d of %d: &quot;,i+1,SIZE);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;arr[i]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nYour Array now contains: { &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;for(i = 0 ; i &amp;lt; SIZE; i++){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d,&quot;,arr[i]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&quot;}&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;clrscr();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&quot;Enter the Element to search in array: &quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;scanf(&quot;%d&quot;,&amp;amp;ele);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&quot;\nDoing Linear Search...\n&quot;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;for(i = 0 ; i &amp;lt;= SIZE;i++){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(arr[i] == ele){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\nElement found at Location %d&quot;,i);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(i == SIZE){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Element Not Found&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;getch();&lt;br /&gt;
}&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;OUTPUT:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://i1140.photobucket.com/albums/n570/wearedev2011/lsearch1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;355&quot; src=&quot;http://i1140.photobucket.com/albums/n570/wearedev2011/lsearch1.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://i1140.photobucket.com/albums/n570/wearedev2011/lsearch2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;346&quot; src=&quot;http://i1140.photobucket.com/albums/n570/wearedev2011/lsearch2.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://i1140.photobucket.com/albums/n570/wearedev2011/lsearch3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;344&quot; src=&quot;http://i1140.photobucket.com/albums/n570/wearedev2011/lsearch3.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://i1140.photobucket.com/albums/n570/wearedev2011/lsearch4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;342&quot; src=&quot;http://i1140.photobucket.com/albums/n570/wearedev2011/lsearch4.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</description><link>http://wearedevelopers.blogspot.com/2011/01/linear-search.html</link><author>noreply@blogger.com (We are Developer)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5959783070182022566.post-8401220515964029316</guid><pubDate>Sun, 09 Jan 2011 01:01:00 +0000</pubDate><atom:updated>2011-01-08T17:01:08.013-08:00</atom:updated><title>BASIC C PROG FOR STRING</title><description>#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include&amp;lt;string.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void main(){&lt;br /&gt;
&amp;nbsp;char name[50];&amp;nbsp;&amp;nbsp; // Creates array for storing string&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;clrscr();&lt;br /&gt;
&amp;nbsp;printf(&quot;Enter your name: &quot;);&lt;br /&gt;
&amp;nbsp;scanf(&quot;%s&quot;,name);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;printf(&quot;\n\nHELLO %s&quot;,name);&lt;br /&gt;
&amp;nbsp;getch();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/************* OUTPUT ******************/&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://i1140.photobucket.com/albums/n570/wearedev2011/bstring.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;350&quot; src=&quot;http://i1140.photobucket.com/albums/n570/wearedev2011/bstring.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
program by - NINAD&lt;br /&gt;
please comment !!!!</description><link>http://wearedevelopers.blogspot.com/2011/01/basic-c-prog-for-string.html</link><author>noreply@blogger.com (We are Developer)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5959783070182022566.post-5780866107875070151</guid><pubDate>Sat, 08 Jan 2011 08:58:00 +0000</pubDate><atom:updated>2011-01-08T17:39:19.825-08:00</atom:updated><title></title><description>&lt;b&gt;&lt;span style=&quot;color: #007f00; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #007f00; font-size: medium;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #007f00; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #007f00; font-size: medium;&quot;&gt;//Inline function square, computes the square of x.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;color: #007f00; font-size: large;&quot;&gt;&lt;span style=&quot;color: #007f00; font-size: large;&quot;&gt;&lt;div align=&quot;center&quot;&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;#include&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&amp;lt;iostream.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;#include&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;class&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;&lt;br /&gt;
cin&amp;gt;&amp;gt;x;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
};&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt; abc&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt; x;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt; get()&lt;/span&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&quot;Enter the value of x &quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;inline&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt; square();&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;void&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
s=x*x;&lt;br /&gt;
cout&amp;lt;&amp;lt;&lt;br /&gt;
}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt; abc::square()&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt; s=0;&lt;/span&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&quot;The square of &quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;lt;&amp;lt;x&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&quot; is = &quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;lt;&amp;lt;s;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;&lt;span style=&quot;color: blue; font-size: medium;&quot;&gt;void&lt;br /&gt;
{&lt;br /&gt;
abc A;&lt;br /&gt;
clrscr();&lt;br /&gt;
A.get();&lt;br /&gt;
A.square();&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt; main()&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium;&quot;&gt;************************//OUTPUT//************************&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;Enter the value of x 5&lt;br /&gt;
The square of 5 is = 25&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;div align=&quot;center&quot;&gt;PROGRAM:-2&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;//Program for Bubble sort using Function.&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&lt;span style=&quot;color: #7f0000; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;div align=&quot;center&quot;&gt;&lt;/div&gt;#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;
#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;
class sort&lt;br /&gt;
{&lt;br /&gt;
int i,j,n,no[100],temp;&lt;br /&gt;
public:&lt;br /&gt;
void get();&lt;br /&gt;
void sortdata();&lt;br /&gt;
void put();&lt;br /&gt;
};&lt;br /&gt;
void sort::get()&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;enter how many numbers: &quot;;&lt;br /&gt;
cin&amp;gt;&amp;gt;n;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;enter &quot;&amp;lt;&amp;lt;n&amp;lt;&amp;lt;&quot; numbers:\n&quot;;&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
{&lt;br /&gt;
cin&amp;gt;&amp;gt;no[i];&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
void sort::sortdata()&lt;br /&gt;
{&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
{&lt;br /&gt;
for(j=0;j&amp;lt;n;j++)&lt;br /&gt;
{&lt;br /&gt;
if(no[i]&amp;lt;no[j])&lt;br /&gt;
{&lt;br /&gt;
temp=no[i];&lt;br /&gt;
no[i]=no[j];&lt;br /&gt;
no[j]=temp;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
void sort::put()&lt;br /&gt;
{ cout&amp;lt;&amp;lt;&quot;\n--------------------OUTPUT-----------------------\n\n&quot;;&lt;br /&gt;
cout&amp;lt;&amp;lt;&quot;Sorted no&#39;s :- &quot;&amp;lt;&amp;lt;endl;&lt;br /&gt;
for(i=0;i&amp;lt;n;i++)&lt;br /&gt;
{&lt;br /&gt;
cout&amp;lt;&amp;lt;no[i]&amp;lt;&amp;lt;endl;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
clrscr();&lt;br /&gt;
sort s;&lt;br /&gt;
s.get();&lt;br /&gt;
s.sortdata();&lt;br /&gt;
s.put();&lt;br /&gt;
getch();&lt;br /&gt;
}&lt;br /&gt;
*******************//OUTPUT//***********************&lt;br /&gt;
enter how many numbers:&lt;br /&gt;
5&lt;br /&gt;
enter 5 numbers:&lt;br /&gt;
999&lt;br /&gt;
1000&lt;br /&gt;
555&lt;br /&gt;
111&lt;br /&gt;
689&lt;br /&gt;
--------------------OUTPUT-----------------------&lt;br /&gt;
Sorted no&#39;s :-&lt;br /&gt;
111&lt;br /&gt;
555&lt;br /&gt;
689&lt;br /&gt;
999&lt;br /&gt;
1000&lt;/b&gt;</description><link>http://wearedevelopers.blogspot.com/2011/01/inline-function-square-computes-square.html</link><author>noreply@blogger.com (We are Developer)</author><thr:total>1</thr:total></item></channel></rss>