Computing For Engineers: Lab Activity 1: Introduction To C++ Programming Objectives
Computing For Engineers: Lab Activity 1: Introduction To C++ Programming Objectives
Learning Outcomes:At the end of the session, the students able: To understand and familiarize with the C++ compiler.
Sample Code: The C++ code below requires one input number from user. An arithmetic operation which is addition is done. The final output from this code is the result obtained from the arithmetic operation. #include <iostream> using namespace std; int main() { int a,b,c; cout<< Please enter one number:; cin>>a; b = 10; c = a + b; cout<<c<<endl; system(pause); } Question From the code, draw the flowchart of its operation, explain the operation by commenting each line and print screen the output.