Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- internal class Program {
- static void Main(string[] args) {
- Console.Write("Zadej řetězec: ");
- string line = Console.ReadLine();
- string[] words = line.Split(' ');
- Console.WriteLine(words.Length);
- foreach (string word in words) {
- if (word.Length >=1) {
- Console.Write(word[0]);
- Console.Write(' ');
- }
- }
- Console.WriteLine();
- Console.WriteLine(line.ToUpper());
- Console.WriteLine(line.Length);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement