السابق
0 / 13
الوحدة النمطية DEMO-32-56DEMO-C-32

Divisibility Checker

DEMO-C-32 • Programming in C

Browser-only practice

بيان المشكلة

Description

Write a program that takes an integer from the user and checks whether it is divisible by 5. If the number is divisible by 5, print "Divisible by 5". Otherwise, print "Not divisible by 5".

Explain the required behaviour and expected output.

قيود

-1000000 ≤ n ≤ 1000000

تنسيق الإدخال

  • Input is provided on a single line or multiple lines as required.
  • Document each parameter, its type, and any ordering.

تنسيق الإخراج

  • Output the computed result on one line.
  • Clarify formatting (e.g., spacing, precision) and any special cases.

حالات اختبار نموذجية

Submit runs every public testcase in this browser. Results and code never leave this device.

العينة رقم 1
عينة ظاهرة
10
Divisible by 5
10 is divisible by 5 since 10 % 5 = 0
العينة رقم 2
عينة ظاهرة
7
Not divisible by 5
7 is not divisible by 5 since 7 % 5 = 2

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
إعدادات المحرر