array


  • 0
    M

    public class Animal{
    public static void main(String args[]){
    int num[]={45,56,32,25,52};
    int temp;
    for(int i=0;i<5;i++)
    if(num[i]>num[i+1]){
    temp=num[i];
    num[i]=num[i+1];
    num[i+1]=temp;
    }

    }
    }


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.