Advertisement
AnitaN

01.Intro-Programming-Homework/10.Reformat-CSharp-Code

Mar 9th, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. ////Problem 10. Reformat C# Code
  2. ////Reformat the following C# code to make it readable according to the C# best practices for code formatting.
  3. //Change the casing of the identifiers in the code (e.g. use PascalCase for the class name)
  4.  
  5. using System;
  6.  
  7. class HorribleCode
  8. {
  9.     static void Main()
  10.     {
  11.         Console.WriteLine("Hi, I am horribly formatted program");
  12.         Console.WriteLine("Numbers and squares:");
  13.         for (int i = 0; i < 10; i++)
  14.         {
  15.             Console.WriteLine(i + " --> " + i * i);
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement