JAVA · ОСНОВЫ · LESSON 06
Fractional numbers
Type double · about 14 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Type an example manually. Check the signs and brackets.
public class Main {
public static void main(String[] args) {
double price = 2.5;
System.out.println(price * 2);
}
}Open the editor for class workSolve it yourself
Create a double length with a value of 1.5. Multiply length by 2 and output the result.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework