Advertisement
solidsnake

C#ShapesUsingAsterisks

Apr 22nd, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1.         Console.Write("Please enter a value for l: ");
  2.             String input = Console.ReadLine();
  3.             Console.Write("Please enter a value for h: ");
  4.             String input2 = Console.ReadLine();
  5.             int h =  int.Parse(input);
  6.             int l = int.Parse(input2);
  7.            
  8.             for (int i = 0; i < h; i++)
  9.             {
  10.                 for (int j = 0; j < l; j++)
  11.                 {
  12.                     Console.Write("*");
  13.                 }
  14.                 Console.WriteLine();
  15.             }
  16.             Console.ReadKey();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement