Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Caesar Cipher Encoder | Text Analysis & Simple Ciphers
C# Strings & Text Processing

bookChallenge: Caesar Cipher Encoder

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 6
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Caesar Cipher Encoder

Glissez pour afficher le menu

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 6
single

single

some-alt