what is wrong with this!!! Programming Software Development by Alerwiali …: add i,1 cmp i,size jl NestedLoop mov bl,[si] cmp bl,si+1 NestedLoop: add j,1 mov al,size…: mov bl,[si] cmp bl,si+1 jg swap loop NestedLoop swap: mov temp,bl mov bl,si+1 mov [si… loops Programming Software Development by miltondollar import javax.swing.*; public class NestedLoop { public static void main(String args[]) { for(int x=0;x< 5;x++) { for(int y=0;y<=x;y++) { System.out.print("*"); }// end innerloop System.out.println(""); }//end outerloop System.out.println(); }//end main }//end class Re: what is wrong with this!!! Programming Software Development by Ancient Dragon What is it supposed to do? Use a debugger to single step through the program to see why it doesn't do what you want it to do. Re: what is wrong with this!!! Programming Software Development by Alerwiali It is supposed to sort the elements of 'vett' By using bubble sort . Re: what is wrong with this!!! Programming Software Development by Ancient Dragon lines 16 and 17: delete them because it isn't necessary to zero out the registers before moving some other value intol them. line 45: why compare bl with the loop counter? bl contains one of the integers from the array. Similar with line 54. I think you need to put [ and ] around si+1 Re: loops Programming Software Development by Majestics You forget something.................... Re: loops Programming Software Development by Rameshwar Soni @miltondollar- what are you trying to achieve? According to your program you are trying to print "*" in a particular fashion and you are importing the swing package?????