Asalamo Alikom w rahmt Allah w baracato,
please explain your program in few details
thanks,
Eng A.Mahmoud

--- On Thu, 8/26/10, Sonu Prajapati <sonuprajapat...@yahoo.in> wrote:

From: Sonu Prajapati <sonuprajapat...@yahoo.in>
Subject: [c-prog] Help!!! :-(
To: c-prog@yahoogroups.com
Date: Thursday, August 26, 2010, 7:36 PM







 



  


    
      
      
      #include<iostream.h>



#include<conio.h>



void main()



{



int array[5],i,j,temp=0;



clrscr();



cout<<"Enter any five number:\n";



for(i=0;i<5;i++)



{



cin>>array[i];



}



for(i=0;i<5;i++)



{



for(j=0;j<i;j++)



{



if(array[j]>array[i])



{



temp=array[i];



array[i]=array[j];



array[j]=temp;



}



}



}



cout<<"The sorted array is:";



for(i=0;i<5;i++)



{



cout<<"\n"<<array[i];



}



getch();



}



[Non-text portions of this message have been removed]





    
     

    
    


 



  






      

[Non-text portions of this message have been removed]

Reply via email to