Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class CompleteString
- {
- static void Main()
- {
- Console.WriteLine("Enter some text (max 20 characters):");
- string text=(Console.ReadLine()).PadRight(20, '*');
- Console.WriteLine("The completed text is: {0}",text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment