Question: MAKE FLOW CHART WITH THIS CODE - C++ #include #include #include using namespace std; // insert code here... void sorting(int& num1, int& num2, int& num3);

MAKE FLOW CHART WITH THIS CODE - C++

#include

#include

#include

using namespace std;

// insert code here...

void sorting(int& num1, int& num2, int& num3);

int main()

{

int num1, num2, num3;

cout << "Enter 3 numbers: " << endl;

cin >> num1 >> num2 >> num3;

sorting(num1, num2, num3);

cout << num1<< " "<

system("pause");

return 0;

}

void sorting(int& n1, int& n2, int& n3)

{

if(n1

int tmp = n1;

n1 = n2;

n2 = tmp;

}

if(n1

int tmp = n1;

n1=n3;

n3 = tmp;

}

if(n2

int tmp = n2;

n2=n3;

n3=tmp;

}

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!