insidcode
ProblemsDuelLeaderboardStats
Sign In
  1. Home
  2. Problems
  3. Capitalize the first letter of each word.

Capitalize the first letter of each word.

Difficulty: Medium

Phase: 5 · Strings

XP Reward: 20 XP

Topics: Strings, Medium

Supported Languages: Python, JavaScript, C, C++, Java

Problem Description

Given a sentence, capitalize the first letter of each word and print. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).

Constraints

  • -10^9 <= N <= 10^9

Examples

Example 1

Input: insidcode logic builder

Output: Insidcode Logic Builder

Explanation: Sample execution for input insidcode logic builder