Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Extract Initials | Fundamentals of Strings
C# Strings & Text Processing

bookChallenge: Extract Initials

Tarefa

Swipe to start coding

Write a function that takes a full name as a string and returns the initials in the format "X.Y." where X and Y are the first letters of each word in the name, capitalized and separated by periods.

  • Split the fullName string into words.
  • Take the first character from each word, convert it to uppercase, and add a period after each letter.
  • Return the constructed initials string.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 4
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Extract Initials

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Write a function that takes a full name as a string and returns the initials in the format "X.Y." where X and Y are the first letters of each word in the name, capitalized and separated by periods.

  • Split the fullName string into words.
  • Take the first character from each word, convert it to uppercase, and add a period after each letter.
  • Return the constructed initials string.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 4
single

single

some-alt