was it during QTP position? wow..
so if u have to derive an algorithm for that then it is... 
input variable: 9999


9999/1000 =9  so here print 9*1000
9999%1000=999 this becomes your new input value

999/500= 1 so here print 1*100
999%500=499 this is your new input value 

so forth..... 





On Saturday, May 4, 2013 10:08:22 AM UTC-4, vamsi 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.


Reply via email to