Hi!!!
I want to make a code for diving a number along with that i want that complete division steps should be shown in listbox.You can see the steps in image attached with my thread.......
Can anyone tell me how can i dynamically generate such steps of division of any number
avirag
10
Posting Whiz
Recommended Answers
Jump to PostA division is in essence a repeated substraction.
Write down how you would do a division with paper and pencil.
Try to translate that in code. The modulus % and the integer division / operators might help you out here.
Jump to PostDrop a Panel on your form and use the Paint event of the Panel.
Something like this:private void outPanel_Paint(object sender, PaintEventArgs e) { // just to make the code somewhat shorter, (not needed) Graphics G = e.Graphics; // Create font and brush. Font drawFont = new …
All 6 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
avirag
10
Posting Whiz
ddanbe
2,724
Professional Procrastinator
Featured Poster
sknake
commented:
I was wondering how the OP would go about it :)
+8
avirag
10
Posting Whiz
avirag
10
Posting Whiz
ddanbe
2,724
Professional Procrastinator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.