create a function to print the numbers 1 to 10 are iterative and recursive

this is the program’s source code to create a function to print the numbers 1 to 10 are iterative and recursive

The following examples of its source:

# include <iostream>

using namespace std;

fuad class {
public:
fuad () {n = 10;}
interatif void (int n);
private:
int i, n;};
void fuad :: interatif (int n) {
int i = 1;

{
for (int i = 1; i <= 10; i + +)

cout << i << endl;
}

}
int main (int argc, char * argv [])
{
{
fuad x;
cout << “\ jackfruit 1 Up By 10 In Interatif: \ n”;
x.interatif (0);
}

system (“pause”);
return 0;
}
Please try🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: