Advertisement
Venciity

[SoftUni C#] Introduction -10.ReformatCode

Mar 7th, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.00 KB | None | 0 0
  1. /*Reformat the following C# code to make it readable according to the C# best practices for code formatting.
  2.  * Change the casing of the identifiers in the code (e.g. use PascalCase for the class name):
  3.  
  4.  using
  5.  
  6. System;
  7.  
  8. class hoRRiblEcoDe
  9. {
  10.     static
  11.      void
  12.  
  13.         Main()
  14.     {
  15.         Console.
  16.  
  17.     WriteLine("Hi, I am horribly formatted program"
  18. ); Console.
  19.       WriteLine("Numbers and squares:")
  20. ; for (int i = 0;
  21. i < 10;
  22. i++)
  23.         {
  24.             Console.WriteLine(i +
  25.                 " --> " + i
  26.                 *
  27.                 i);
  28.         }
  29.     }
  30. }
  31.                                                                 */
  32. using System;
  33.  
  34.     class ReformatCode
  35.     {
  36.        static void Main()
  37.         {
  38.             Console.WriteLine("Hi, I am horribly formatted program");
  39.             Console.WriteLine("Numbers and squares:");
  40.             for (int i = 0; i < 10; i++)
  41.             {
  42.                 Console.WriteLine(i +" --> " + i * i);
  43.             }
  44.         }
  45.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement