Initials · Viết tắt tên
Initials
first is "ada" and last is "lovelace". Store "A.L." in initials — each first letter, capital, each followed by a dot.
Three ideas at once: take a character, make it uppercase, join pieces with +. Build it one step at a time and print what you have so far if it goes wrong.
Chữ cái đầu
first là "ada" và last là "lovelace". Lưu "A.L." vào initials — mỗi chữ cái đầu, viết hoa, mỗi chữ cái đều theo sau bởi một dấu chấm.
Ba ý tưởng cùng lúc: lấy một ký tự, chuyển nó thành chữ HOA, nối các mảnh với +. Xây dựng từng bước một và in ra những gì bạn có nếu gặp sự cố.
first is "ada" and last is "lovelace". Store "A.L." in initials — each first letter, capital, each followed by a dot. · first là "ada" và last là "lovelace". Lưu "A.L." vào initials — mỗi chữ cái đầu, viết hoa, mỗi chữ cái đều theo sau bởi một dấu chấm.
Click Run to see the output here. · Nhấn Chạy để xem kết quả ở đây.