Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace StringLength_2
- {
- class StringLength_2
- {
- static void Main(string[] args)
- {
- string input = Console.ReadLine();
- string twenty = input.Length > 20 ? new string (input.Take(20).ToArray()) : input;
- Console.WriteLine(twenty.PadRight(20,'*'));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement