Skip to content

Commit

Permalink
fix: teacher's solution
Browse files Browse the repository at this point in the history
Ранее в теории не было информации про функцию print. К тому же, оптимальнее использовать уже изученную функцию println вместо 2 вызовов print.
  • Loading branch information
Trisodium-ru authored Oct 5, 2024
1 parent 4072ac4 commit c8def23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/30-variables/15-variable-expressions/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ public static void main(String[] args) {

// BEGIN
var dollarsCount = eurosCount * 1.25;
System.out.print(dollarsCount);
System.out.print("\n");
System.out.println(dollarsCount);

var rublesCount = dollarsCount * 60;
System.out.print(rublesCount);
System.out.print("\n");
System.out.println(rublesCount);
// END
}
}

0 comments on commit c8def23

Please sign in to comment.