Think excuse me, I set it every number is \ t to alignment, there will be a few more smaller column spacing between ?
CodePudding user response:
Try to string format to align: ToString (" 00 ")
CodePudding user response:
using System; Using System. Linq;
The namespace ConsoleApp1 { Class Program { The static void Main (string [] args) { Var RND=new Random (); Enumerable. Range (1, 10). ToList (). The ForEach (I=& gt; { Enumerable. Range (1, 10). ToList (). The ForEach (j=& gt; { The Console. Write (${" RND. Next (2, 3), 8} "); }); Console. WriteLine (); }); } } }