Question: Practice Print statements & Variable Declarations Create an integer variable called side and assign it 8 Create another integer variable called area and assign it
Practice Print statements & Variable Declarations
Create an integer variable called side and assign it
Create another integer variable called area and assign it side side
Create a String variable named fish and assign it tuna
Create a String variable named animal and assign it fish
Print out the side, area, fish and animal using all three different print statements print println, printf
be sure to label your outputs.
Sample Output:
Side Area
Fish: tuna
Animal: tuna
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
