Answer: In Computer Programming the variables can pass on values or accept values and give the result and in algebra we solve for variables like x and y in their simplest form.
For example: Find the area of a square with side ‘a’ units.
In algebra: Area=a2.
In Programming, the program can find the area by taking input from the user.
cout<<“The area is “<<area;
cout<<“Enter length of side”;