Advertisement
Assi

13. Strings and Text Processing 6. PadRight

Jan 24th, 2013
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1. using System;
  2.  
  3. class PadRight
  4. {
  5.     static void Main()
  6.     {
  7.         string str = "Some text";
  8.         string newStr = str.PadRight(20, '*');
  9.         Console.WriteLine(newStr);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement