using recursive function



Help for C/C++ for MVS, OS/390 C/C++, z/OS C/C++ and C/C++ Productivity Tools for OS/390

using recursive function

Postby darvin13 » Thu Jul 01, 2010 4:30 pm

my problem:
i have to write a code using recursive function about arithmetic series in multiplication.

example:

the user will input two integers the length of the output and the difference, the output must start to 2.

Enter the length: 5 //this is not fixed
Enter the difference: 2 //this is not fixed

the output must be: 2 4 8 32 256

if you know the program please help me..
thanks :)
i need help..
nivrad13
darvin13
 
Posts: 4
Joined: Wed Jun 30, 2010 6:11 pm
Location: Philippines
Has thanked: 0 time
Been thanked: 0 time

Re: using recursive function

Postby Robert Sample » Thu Jul 01, 2010 4:52 pm

Posting the same question multiple times won't get you faster responses, nor better responses.

And if you had taken all the time you've been waiting for help on this forum, you probably could have the code done already.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to C, C++

 


  • Related topics
    Replies
    Views
    Last post