Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- /* Write a program that prints an isosceles triangle of 9 copyright symbols ©, something like this:
- * ©
- * © ©
- * © ©
- * © © © ©
- * Note that the © symbol may be displayed incorrectly at the console so you may need to change the console character encoding to UTF-8 and assign a Unicode-friendly font in the console.
- * Note also, that under old versions of Windows the © symbol may still be displayed incorrectly, regardless of how much effort you put to fix it. */
- class IsoscelesTriangle
- {
- static void Main()
- {
- char copyright = '\u00A9';
- Console.WriteLine(" {0} \n {0} {0} \n {0} {0} \n{0} {0} {0} {0}",copyright);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement