Name Initials Easy

+50 PTS

Before you start the test, check out our tutorial challenge

  • TYPE CODE PRACTICE CHALLENGE
  • LANGUAGES C++, C#, JAVA, JAVASCRIPT AND 6 MORE
    LANGUAGES C++, C#, JAVA, JAVASCRIPT, PHP, PYTHON2, PYTHON, RUBY, SWIFT, TYPESCRIPT
  • TIME ~10MIN

Name Initials

Challenge outline

Hello and welcome to the challenge!


Write a function which converts names to its initials. The function should receive a string with forename and surname separated with spaces and it should return first letters of these names separated with a single dot.

Examples

  • Adam Smith -> A.S
  • John Black -> J.B


You can solve this programming contest in C#, C++, Java, Ruby, JavaScript, Python, PHP and many more languages. If you want, you can also take part in other September 2019 competitions. Below you can find some of them:



Have fun and good luck! :)