Multiples of 10 using recursion

hi there, can someone give me a code or maybe just a hint on how to find the multiples of 10 on a given number using recursion...
example: 43
answer: 10,20,30,40
I've been thinking about this for almost 2hours I just can't solve it...
thanks!

ok! here's my code!!
a proof that i'm trying to solve it...
public static void main(String[]args)throws FileNotFoundException {
              int num = 43
              int i = 1;
              int x = div10(num,i);
              System.out.println(x);
public static int div10(int n, int temp)
         if(n<10) //i think this is the base case, i really don't know...
              return 0;
         else if(n == 10) //also, i think this is the base case, i really don't know...
              return 10;
         else{
         if(temp<n/10)
          return div10(10*temp,temp+1);     
    }it also has an error of missing return statement...
Edited by: angryProgrammer on Feb 11, 2009 5:19 AM

Similar Messages

  • How do multiple family members use iTunes.? One account or multiple?

    How do multiple family members use iTunes. One account right now but apps gets added to all devices and iTunes messages go to all devices.  Can multiple accounts be setup and still have ability to share purchased items?

    Hey Ajtt!
    I have an article for you that can help inform you about using Apple IDs in a variety of ways:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using one Apple ID for iCloud and a different Apple ID for Store Purchases
    You can use different Apple IDs for iCloud and Store purchases and still get all of the benefits of iCloud. Just follow these steps:
    iPhone, iPad, or iPod touch:
    When you first set up your device with iOS 5 or later, enter the Apple ID you want to use with iCloud. If you skipped the setup assistant, sign in to Settings > iCloud and enter the Apple ID you’d like to use with iCloud.
    In Settings > iTunes and App Stores, sign in with the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match). You may need to sign out first to change the Apple ID.
    Mac:
    Enter the Apple ID you want to use for iCloud in Apple () menu > System Preferences > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in Store > Sign In. In iTunes 11, you can also click iTunes Store > Quick Links: Account.
    PC (Windows 8):
    Enter the Apple ID you want to use for iCloud in the Control Panel. To access the iCloud Control Panel, move the pointer to the upper-right corner of the screen to show the Charms bar, click the Search charm, and then click the iCloud Control Panel on the left.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes. In iTunes 10, select Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    PC (Windows 7 and Vista):
    Enter the Apple ID you want to use for iCloud in Control Panel > Network and Internet > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes 10 in Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    Note: Once a device or computer is associated with your Apple ID for your iTunes Store account, you cannot associate that device or computer with another Apple ID for 90 days. Learn more about associating a device or computer to your Apple ID.
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • What happens on iCloud (ex. contacts) when multiple family members use the same Apple ID?

    What happens on iCloud when multiple family members use the same Apple ID?  For example if we all choose to use iCloud for contacts, are they all merged together?  We use the same Apple ID so we can use find my iPhone to keep track of the whole family.

    Of course if you are both connected to the same iCloud account you have the same contacts - what did you expect?. The contacts live on the server and are read from there by the devices; so as you've both managed to sync your contacts up to iCloud they are now inextricably mixed. You can only delete your contacts by deleting individual ones, and doing that will delete them from your phone as well.
    You can only unravel this by
    1. In the iCloud contacts page at http://icloud.com, select all the contacts, click on the cogwheel icon at bottom left and choose 'Export vCard'.
    2. Sign out of System Preferences>iCloud
    3. Create a new Apple ID and open a new iCloud account with it for your own use.
    4. Import the vCard back into the iCloud contacts page.
    5. Go to http://icloud.com and sign in with the original ID. This is now his ID. Work through the contacts individually deleting the ones you don't want him to have. When done sign out and advise him to change his password.
    6. Go to the new iCloud account and delete his contacts individually.
    Of course if you have also been syncing calendars and using the same email address there are problems with doing this.

  • HT204053 I have multiple family members using one apple id account and all of each others information is going onto each others phones/how do i stop this?

    I have multiple family members using one apple id and all of our data is going onto each others phones/how do i stop this?

    Each person needs to have their own separate Apple ID along with their own separate computer user account and iTunes Library.

  • Send multiple email attachments using FM SO_NEW_DOCUMENT_ATT_SEND_API1.How?

    Hi All,
    I have a requirement to send email to an external ID for which I am using FM SO_NEW_DOCUMENT_ATT_SEND_API1.Can anyone give a sample code to send multiple excel attachments using this function module.
    Points would be rewarded.
    Thanks
    Archana.

    Check the Thread,,
    Re: more than 1 attachements/sheets in SO_DOCUMENT_SEND_API1

  • Can multiple APEX application use the same parsing schema?

    Hi,
    I have 4.2 APEX thru pl/sql Gatewat, 11gr2 DB and using theme 24.
    Due to the APEX limitation for version control I would be splitting 1 big ERP applications into 24 different APEX applications and each application would be considered as 1 unit for version control.
    I have about 800 tables and I would assume that all of these would need to be stored in 1 schema since a lot of these table are linked thru FK.
    Can I have multiple APEX APPS using the same parsing schema? or is there a better way to do this?
    Thanks in advance!

    Hi,
    Multiple applications can have same (one) parsing schema.
    You can test that on e.g. apex.oracle.com, where normally you have only one schema and you create multiple applications and all use that same schema.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai
    Edited by: jarola on Jan 28, 2013 7:15 PM

  • How can i create multiple accounts but use the same itunes?

    how can i create multiple accounts but use the same itunes?

    Hi iCloud is Making Me Go Crazy,
    You will need to create a new Apple ID for your GameCenter and iCloud services.  You can continue to use the current Apple ID you share with your Mom for access to iTunes Store purchases if you wish. 
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Cheers,
    - Judy

  • 1099 Reporting for Multiple Operating Units using same Tax Id Number

    Everyone!!!!
    We have multiple operating units using the same tax id number. We need to use the 1099 standard reports. I see that in the 1099 standard programs, one of the necessary parameters is Tax Entity Id which is again at operating unit level.
    As 1099 reports need to be sent at the Tax Id Number not at operating unit level, is there any way to use the starndard program and do this, or will we have to customize it?
    We are on 11.5.10.2 if it matters. Let me know if you need more information.

    Ok, I Found it. We have to customize it. Taxes are reported at Operating Unit level only.

  • How do I setup multiple users to use one source but manage playlists separately?  For example, play counts are specific to each user.

    How do I setup multiple users to use one source but manage playlists separately?  For example, play counts are specific to each user.

    Hi,
    Thank you for posting in Windows Server Forum.
    Here adding to the words of “Tim”, a forwarder is a DNS server on a network used to forward DNS queries for external DNS names to DNS servers outside of that network. You can also forward queries according to specific domain names using conditional forwarders.
    A DNS server on a network is designated as a forwarder by having the other DNS servers in the network forward the queries they cannot resolve locally to that DNS server. You can refer information regarding forwarders and how to configure from beneath link.
    Understanding forwarders
    http://technet.microsoft.com/en-us/library/cc782142(v=ws.10).aspx
    Configure a DNS Server to Use Forwarders
    http://technet.microsoft.com/en-us/library/cc754941.aspx
    Hope it helps!
    Regards.

  • Multiple Email Accounts using MS Mail

    I want to setup multiple email accounts using MS mail.  My already has an account, but I want to add an account for my son.  I've added the account on verizon and in MS mail.  However, I want to have completly separate accounts so that when my son opens his email  he only see his email and when my wife opens her email, she only sees her email.  Right now, when MS mail is opened both their emails come up and when they send an email, they must select which email account they are sending from.
    Does anyone know how to do this?

    One option would be to not use MS Mail (I assume you really mean Windows Live Mail?).   You could create accounts for them and have them just use the Web mail interface to get to their mail.
    Another option would be to give each person their own "user account" on your machine instead of all logging into the computer as the same userid.   If you do this, any mail settings will remain with the individual account.

  • Multiple questions about using iWeb '09 with my Host Excellence, GoDaddy & Storenvy Accounts. Can you Help?

    Hello, my name is Luis Diaz and I have always appreciated the help here in the iWeb community.  I've been using iWeb for a long time. For some reason my usernames are not working lately - LuisDiazArt or RabidArt)
    I updated my domain service with Host Excellence before MobileMe expired and thank you guys for the help with that. So far it's been a flawless service and because of that I'm very happy. I also have all my domains in GoDaddy. They have been very helpful
    Okay I'm going to try to explain my current problem. I'm trying to create a subdomain in GoDaddy for my website: LuisDiazArt.com
    I went and added a Subdomain in the Control Panel as: store.LuisDiazArt.com The subdomain suppose to mask my store: luisdiaz.storenvy.com
    I thought by adding this subdomain it would make all the addresses look similar (and more clean) just in case someone gets lost along the way.
    So what's happening after I waited an hour is I'm getting: http://store.luisdiazart.com/LuisDiazArt.com/Art_of_Luis_Diaz_%7C_LuisDiazArt.co m.html
    I'm getting the huge and familair long addresses and it is not pointing to my store, but to the homepage.
    Did I do something wrong or do I not understand something fully about subdomains? I thought you can make a subdomain point to another site. Perhaps it can't be done the way I'm thinking about this.
    So to fix this issue I am thinking about making a duplicate website with a different domain name (RabidArt) and mask it with LuisDiazArt (this is site name I use on business card and everything else).  After that make a subdomain with the same: http://store.luisdiazart.com
    Perhaps this may fix the problem.
    So to do this I may need to add another site onto my account (Basic and not Business) on HostExcellence.
    So my other questions are:
    Can I have multiple domains or websites using iWeb on a Basic Host Excellence Account? I checked out a few websites, but couldn't really find out if I can have multiple domains/websites using iWeb on Host Excellence with my current account.
    I do know how to make a new duplicate site, but do you publish it the same way as you would with the regular site or do I have to so something different?
    Hopefully the problem can be fixed not having to do a new site and maybe it was something I did wrong when I added a subdomain.

    To add more domains you need to upgrade your account.
    To have a sub domain for your store you need to create a separate site in iWeb and upload these files to the store.luisdiazart.com folder.
    The files for the main site go in the luisdiazart folder.
    Use an external hyperlink to link one to the other.

  • Multiple post requests using a single HttpConnection

    Hi,
    is it possible to send multiple post requests using a single Http connection.
    i am currently trying to simulate the preformance overhead because of creating HttpURLConnection to talk to my servlet. But, that made me wonder, if is there a way to send multiple post requests using a single HttpURLConnection.
    can anyone help me with this.
    thanks in advance

    Hi
    I found this article through Google. I hope it helps a little
    http://www.developer.com/tech/article.php/761521
    D

  • Single step workflow with multiple approvers (without using a group)

    Hi,
    is it possible to have a single step workflow with multiple approvers without using a group? This is for a contract document.
    i want to add a number of users based on particular logic. The approvers are random and do not belong to any particular group.
    DO let me know if it is possible or if any of you have done that.
    thanks in advance.
    regards,
    rubio

    Hi Rubio,
    I believe the behavior would be, if individual users are added as approvers then the system would require each approver to approve the document. However, if you use the user group, you could set the role so that it would be either ALL or ANY.
    Regards,
    Vikram

  • When using Firefox Sync on multiple devices, I used to be able to 'send' a tab from one computer to another. Is this still possible? If so, how?

    When using Firefox Sync on multiple devices, I used to be able to 'send' a tab from one computer to another. Is this still possible? If so, how?
    I don't mean the ability to see what tabs are open on another device (I know how to do this). But if I am at work and find something that I want to read at home, it would be helpful to 'send' the tab to my home PC so that when I return home, it will automatically open that tab for me.

    Can anyone help?

  • Any Tutorial / Sample to create Single PDF from multiple source files using PDF assembler in a watched folder process.

    Any Tutorial / Sample to create Single PDF from multiple source files using PDF assembler in a watched folder process. I have a client application which will prepare number of source files and some meta data information (in .XML) which will be used in header/footer. Is it possible to put a run time generated DDX file in the watch folder and use it in Process. If possible how can I pass the file names in the DDX. Any sample Process will be very helpful.

    If possible, make use of Assembler API in your client application instead of doing this using watched folder. Here are the Assembler samples :  LiveCycle ES2.5 * Programming with LiveCycle ES2.5
    Watched folder can accept zip files (sample : Configuring a watched folder to handle multiple input files and write results to a single folder | Adobe LiveCycle Blog ). You can also use execute script to create the DDX at runtime : LiveCycle ES2 * Application Development Using LiveCycle Workbench ES2
    Thanks
    Wasil

Maybe you are looking for

  • How to pass select-options variable to a form.

    I have a select-options variable smatnr. I need to pass this select-options variable to a form by perform using smatnr changing svar. form cond_types using pmatnr changing svar. IT gives an error saying imcompatible types been passed between smatnr a

  • Compiling kde-3.4.x on Solaris 10

    Who can tell me what must be done to build KDE-3.4.x and Qt on Solaris10, with gcc.(or with SunStudio10), but I'm more interested how this can be done with gcc. I tried compiling qt with (gcc): "./configure -no-stl -no-g++-exceptions -platform solari

  • My ipad mini battery drained , its charging but i cant open it , its been 30 mins and its still in the red bar .... what to do ???.... please help

    my ipad mini battery drained , its charging but i cant open it , its been 30 mins and its still in the red bar .... what to do ???.... please help

  • Regarding EDI----XI----IDOC

    Hi All, I have One Requirement here is that My Client's Customer will send EDI Formated Data (ANSI Type ) to Client. That Data has to be Posted into SAP R/3 Database. So here We are Using XI For that . Can Any One Explain me what could be the Scenari

  • Network farm setup?

    I will setup a network system so that I can make use of 20 computers on the network for AE renders... basic principal for rendering is to render into image sequences by skipping existing frames... What kind of network setup should I be looking for so