ellapt

T14.6.CompleteString

Feb 3rd, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. using System;
  2.  
  3. class CompleteString
  4. {
  5. static void Main()
  6. {
  7. Console.WriteLine("Enter some text (max 20 characters):");
  8. string text=(Console.ReadLine()).PadRight(20, '*');
  9. Console.WriteLine("The completed text is: {0}",text);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment