Question: Write a program that does the following: Declare an integer variable no 1 Declare and assign the value 7 7 to an integer variable no
Write a program that does the following:
Declare an integer variable no
Declare and assign the value to an integer variable no
Add no to no and assign the value to the integer variable total
Compile your work
Did you get an error? Write a comment to explain the error.
Fix the error from above using whatever value you would like.
Use a print statement to print out total
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
