129k views
3 votes
Write declaration statements to declare and initialize two variables: one is an integer variable named age, initialized to 18, and the other variable, named weight, is initialized to 114.5

1 Answer

2 votes
in Java....

int age=18;

float weight=114.5;
User Tasmia
by
7.6k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.