Convert the following into Pep/9 Assembler: #include using namespace std; int square(int n){ int i; int sq; sq = 0; for (i = 0; i > num; cout


Convert the following into Pep/9 Assembler:



#include


using namespace std;


int square(int n){


    int i;


    int sq;


    sq = 0;




    for (i = 0; i < n;="">


        sq = sq + n;     }




    return sq;


}




int main (){


    int num;




    cout < "enter="" a="" number:="">

    cin >> num;





    cout < num="">< " squared = "



<< square(num)



<< endl;




    return 0;


}


submit: source file along with screen captures showing the program running in the pep simulator.



"="" squared="">


<< square(num)



<< endl;




    return 0;


}


submit: source file along with screen captures showing the program running in the pep simulator.



>
Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here