10-17-2011, 05:44 PM
Hi Sandya,
I have did a sample coding for ur requirement and it is working now. Below is the code which u can use.
Do let me know if u have any query.
Regards,
Ankesh
I have did a sample coding for ur requirement and it is working now. Below is the code which u can use.
Code:
intVar1=56
intOriginalVar1Value=56 ' Keeping the original value for later use
intVar2=8
intOriginalVar2Value=8 ' Keeping the original value for later use
intQuotient =1
While intVar1 > intVar2
intVar1=intVar1-intVar2
intQuotient=intQuotient+1
Wend
intReminder = intOriginalVar1Value - (intOriginalVar2Value*intQuotient)
msgbox intQuotient
msgbox intReminder
Do let me know if u have any query.
Regards,
Ankesh