S
Silver
Practice
My progress
Compiler
Sign in
Working…
Practice
›
Java Fundamentals
›
Module 1. Values, Variables & Expressions
›
1.4 Arithmetic
Task
4
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 — last digit
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 its last digit.
The program prints
7
.
Your solution
public class Main { public static void main(String[] args) { // store the number, print its last digit } }
Next task →