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

Caesar Cipher

DEMO-C-32 • Programming in C

Browser-only practice

بيان المشكلة

Write a program that encrypts a string using a Caesar cipher with a shift of 1 (a->b, z->a). Conservation of case is required.

قيود

Max string length: 100

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

Input:

String S

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

Output:

Cipher

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

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

العينة رقم 1
عينة ظاهرة
Attribute!9
Buusjcvuf!9
Shifting Attribute!9 by 1 gives Buusjcvuf!9.
العينة رقم 2
عينة ظاهرة
Database?4
Ebubcbtf?4
Shifting Database?4 by 1 gives Ebubcbtf?4.
العينة رقم 3
عينة ظاهرة
Scrum?6
Tdsvn?6
Shifting Scrum?6 by 1 gives Tdsvn?6.
العينة رقم 4
عينة ظاهرة
Object?2
Pckfdu?2
Shifting Object?2 by 1 gives Pckfdu?2.

Web terminal

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

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