Please find the below solution.but need to write more simple. Please give
me solution more simpler
mynumber="9999"
modvalue= mynumber mod 1000
byvalue=mynumber/1000
byvalue=Left(byvalue,1)
mynumber=modvalue
print  byvalue & " * 1000"
modvalue=mynumber mod 500
byvalue=mynumber/500
mynumber=modvalue
byvalue=Left(byvalue,1)
print  byvalue & " *500"
modvalue=mynumber mod 100
byvalue=mynumber/100
byvalue=Left(byvalue,1)
print  byvalue & " *100"
modvalue=mynumber mod 50
byvalue=mynumber/50
byvalue=Left(byvalue,1)
print  byvalue & " *50"
modvalue=mynumber mod 10
byvalue=mynumber/10
byvalue=Left(byvalue,1)
print  byvalue & " *10"
modvalue=mynumber mod 2
byvalue=mynumber/2
byvalue=Left(byvalue,1)
print  byvalue & " *2"



On Sat, May 4, 2013 at 7:38 PM, vamsi reddy <[email protected]> wrote:

> HI All,
> I Faced a question in an interview
>
> 1.Enter 9999
>
> *Result Should be*
> * 9*1000*
> * 1*500*
> * 4*100*
> * 1*50*
> * 2*20*
> * 2*2*
> *
> *
> *
> *
> *9999*
>
>
>
> --
> Vamsi Reddy
> *
> *
>
> * *
>
>
> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to