24
1
using System;
2
3
public class Program
4
{
5
static void Piramid(int n)
6
{
7
for (int i=1; i<=n; i++)
8
{
9
for (int j=i; j<=n; j++)
10
{
11
Console.Write(" ");
12
}
13
for (int k=1; k<=2*i-1; k++)
14
{
15
Console.Write("◊"+" ");
16
}
17
Console.WriteLine();
18
}
19
}
20
public static void Main(string[] args)
21
{
22
Piramid(10);
23
}
24
}
Cached Result
Compilation error (line 12, col 47): Unreachable code detected
Compilation error (line 7, col 22): 'Program.Palindrome(string)': not all code paths return a value
Compilation error (line 7, col 22): 'Program.Palindrome(string)': not all code paths return a value