Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 7 results for
nestedloop
- Page 1
what is wrong with this!!!
Programming
Software Development
13 Years Ago
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
12 Years Ago
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
13 Years Ago
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
13 Years Ago
by Alerwiali
It is supposed to sort the elements of 'vett' By using bubble sort .
Re: what is wrong with this!!!
Programming
Software Development
13 Years Ago
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
12 Years Ago
by Majestics
You forget something....................
Re: loops
Programming
Software Development
12 Years Ago
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?????
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC