Trace Table with algorithm
Test the following algorithm using the trace table technique. Thegiven variables values are: x = 3, y = 5.
- Declare the integer variables x, y, z
- Ask the user to Enter the first integer number
- Input x by the user.
- Ask the user to Enter the second integer number
- Input y by the user.
- Compute x*2+y*3 and assign the result to the variable z.
- Display the value of the variable z.
Comments
Post a Comment