20.) In this c++ program. Create a flowchart and algorithm. Source Code: #include using namespace std; int main() { int i, n; // Take input from user. cout > n; cout


20.) In this c++ program. Create a flowchart and algorithm.


Source Code:


#include


using namespace std;


int main() {


    int i, n;


    // Take input from user.
    cout < "print="" all="" even="" numbers="" till="" :="">
    cin >> n;


    cout < endl="">< "even="" numbers="" from="" 1="" to="" "="">< n="">< "="" are="" :="" "=""><>


    for(i = 1; i <= n;="" i++)="">


        // Check for even or not.
        if((i % 2) == 0) {


            cout < i="">< "="">


        }
    }


    return 0;
}



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here