Previous Next
0 / 13
Module DEMO-33-61DEMO-OOP-33

Initials Generator

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Welcome to your programming exercise!

You are tasked with creating a simple program that reads a person's first, middle, and last name initials and displays them in a formatted way. This is a common requirement in many real-world applications like ID card generation, database indexing, and form processing.

Your program should read exactly three characters (representing initials) from standard input and output them in the format: Initials: X.Y.Z. where X, Y, and Z are the three characters entered.

Example: If someone enters 'J', 'M', and 'S', your program should output Initials: J.M.S.

Constraints

Each input will be exactly one uppercase or lowercase letter (a-z or A-Z) There will be exactly one space between each character in the input The input will contain exactly three characters

Input Format

The input consists of a single line containing exactly three characters separated by spaces.

Example: J M S

Output Format

Output a single line in the format: Initials: X.Y.Z. where X, Y, and Z are the input characters.

Example: Initials: J.M.S.

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
J M S
Initials: J.M.S.
Basic test case with uppercase letters

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings