S
Silver
Practice
My progress
Compiler
Sign in
Working…
Practice
›
Java Fundamentals
›
Module 1. Values, Variables & Expressions
›
1.4 Arithmetic
Task
2
of
14
·
0
solved ·
14
to go
0%
1
2
3
4
5
6
7
8
9
10
11
12
13
14
You can read the problem, but answers are checked only for signed-in students.
Sign in to answer →
1.4 Arithmetic — count tens
Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task
Store the number 47 in a variable and print how many whole tens it contains.
The program prints
4
.
Your solution
public class Main { public static void main(String[] args) { // store the number, print how many whole tens it contains } }
Next task →