Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Caesar Cipher Encoder | Text Analysis & Simple Ciphers
C# Strings & Text Processing

bookChallenge: Caesar Cipher Encoder

Завдання

Swipe to start coding

Implement a function that encodes a message using a Caesar cipher with a specified shift value. The Caesar cipher shifts each letter in the message by the given amount, wrapping around the alphabet if necessary. Non-letter characters should remain unchanged.

  • Shift each uppercase and lowercase letter in message by shift positions in the alphabet.
  • Preserve the case of each letter.
  • Do not change any non-letter characters.
  • Return the encoded string.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 6
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Suggested prompts:

Can you explain this in simpler terms?

What are some examples related to this topic?

Where can I learn more about this?

close

bookChallenge: Caesar Cipher Encoder

Свайпніть щоб показати меню

Завдання

Swipe to start coding

Implement a function that encodes a message using a Caesar cipher with a specified shift value. The Caesar cipher shifts each letter in the message by the given amount, wrapping around the alphabet if necessary. Non-letter characters should remain unchanged.

  • Shift each uppercase and lowercase letter in message by shift positions in the alphabet.
  • Preserve the case of each letter.
  • Do not change any non-letter characters.
  • Return the encoded string.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 6
single

single

some-alt