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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here