First Exercise

This commit is contained in:
2025-02-20 23:51:20 +01:00
parent 2b700071aa
commit d580b385e5
27 changed files with 207 additions and 36 deletions

View File

@@ -0,0 +1,13 @@
# Task
Write a program which reads in an integer a larger than `1000` and outputs its last three digits. For example, if `a=14325`, the output should be `3 2 5`.
_Hint_: You need to use integer division and modulo operators.
# Input
An integer larger than `1000`.
# Output
Last three digits separated by spaces.