Solved

Write a Short Program That Declares a Single Integer Variable

Question 19

Essay

Write a short program that declares a single integer variable called age and assigns it a value equal to your age. Also have it print out your age using the age variable. The output of your program should look similar to the following:
I am 30 years old.

Correct Answer:

verifed

Verified

public class MyAge {
public st...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions