Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Reformat the following C# code to make it readable according to the C# best practices for code formatting.
- * Change the casing of the identifiers in the code (e.g. use PascalCase for the class name):
- using
- System;
- class hoRRiblEcoDe
- {
- static
- void
- Main()
- {
- Console.
- WriteLine("Hi, I am horribly formatted program"
- ); Console.
- WriteLine("Numbers and squares:")
- ; for (int i = 0;
- i < 10;
- i++)
- {
- Console.WriteLine(i +
- " --> " + i
- *
- i);
- }
- }
- }
- */
- using System;
- class ReformatCode
- {
- static void Main()
- {
- Console.WriteLine("Hi, I am horribly formatted program");
- Console.WriteLine("Numbers and squares:");
- for (int i = 0; i < 10; i++)
- {
- Console.WriteLine(i +" --> " + i * i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement