12y - Learn Java - Exercise 2 - Java Variables

preview_player
Показать описание

In this lesson you will practice using the integer variable type in Java. We will declare variables, assign values as integers, and use the variables in calculations.
Рекомендации по теме
Комментарии
Автор

i made it in two lines :D using (printF) Statement.

int lisa=34, john=205, jenny=-20;

System.out.printf("lisa Has %d Dollars, and john has %d Dollars. \nJenny has negative money, and she has -20 dollars! ", lisa, john, jenny );

واحةالمنزل
Автор

where are you assigning these lessons? I'm not seeing where you give the directions for the assignments.

SirFency
welcome to shbcf.ru