|
-
Feb 16th, 2000, 11:11 AM
#1
Thread Starter
Junior Member
I have to make a program that tells you what change you get back in quarters, dimes and nickel, and pennies. From a value below a dollar. I just started programming in visual basic and this program is due Friday and I have no clue what to do using the Mod division thing. This is what I have so far but doesn't work of course:
Dim inttxtinputchange As Integer
Dim intquarters As Integer
Dim intdimes As Integer
Dim intnickels As Integer
Dim intpennies As Integer
inttxtinputchange = txtinputchange.Text
lblquarters.Caption = inttxtinputchange Mod 25
lbldimes.Caption = inttxtinputchange Mod 10
lblnickels.Caption = inttxtinputchange Mod 5
lblpennies.Caption = inttxtinputchange Mod 1
Can someone please give me the correct code or at least help me out?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|