Menu

Custom Search

C++ Program

#include
#include

void main()

{
clrscr();
int array[8],i,j,t;

cout<< "enter the value of array:"<>array[i] ;
};
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
if(array[i] {
t=array[i];
array[i]=array[j];
array[j]=t;
}
}
}

cout<<"the ascending order is:";
for(i=0;i<5;i++)

cout< cout<
getch(); }




No comments:

Post a Comment