Question: Convert the following C++ program into Pep/9: #include using namespace std; const int amount = 20000; int num; int sum; int main() { cin>>num;

 Convert the following C++ program into Pep/9: #include using namespace std; const  

Convert the following C++ program into Pep/9: #include using namespace std; const int amount = 20000; int num; int sum; int main() { cin>>num; sum = num + amount; cout < < "sum = " < < sum < < endl; return 0;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a corrected C code and an explanation for a possible Pep9 equivalent focusing on the calculati... View full answer

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 Programming Questions!