← Problem book: C
Lesson 10 of 96 · 10 XP
Whole kilobytes
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
You are given a file size in bytes n (n ≥ 0). Print how many whole kilobytes it contains. A kilobyte is 1024 bytes.
Example
Input:
2048
Output:
2
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.