print the number is divisible by 5 and 7 between 1 and by 100 in rekrusif

in this post I will show how to print the flowchart number is divisible by 5 and 7 between 1 to 100 in rekrusif.

straight course, this is the shape of its flowchart:

in this post I will show how to print the flowchart number is divisible by 5 and 7 between 1 to 100 in rekrusif. straight course, this is the shape of its flowchart:

remember this is a recursive way, so it should change the mode to be intermediates.

As for the shape of c + + programming was as follows:

#include <iostream>
#include <string>using namespace std;class cetak{
public:
cetak();
int proses(int a, int b);
private:
int a,b;
};

cetak::cetak(){}

int cetak::proses (int a, int b){
if (a>b){
}else
{
if (a % 5==0 && a % 7==0)
{
cout << a << endl; }
else
{}proses(a+1,b);
}
}
int main(){

cetak marty;
int a,b;
cin>>a;
cin>>b;
marty.proses(a,b);

system(“pause”);
return 0;
}

so its a form of flowchart and c++ code. thank you🙂

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: