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 no1
Declare and assign the value 77 to an integer variable no2
Add no1 to no2 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 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!