#Day 6: Creating an Alphabet Triangle Pattern in C#
Welcome to Day 6 of our series on 101 Days Pyramid Pattern in C# .NET.
namespace Pyramid
{
internal class Program
{
static void Main(string[] args)
{
int n = 69;
for(int i = 65; i <= n; i++)
{
for(int j=65;j<=i;j++)
{
Console.Write((char)j);
}
Console.WriteLine();
}
Console.Read();
}
}
}
Stay tuned for Day 7, where we'll continue exploring more C# patterns and concepts!
Don’t forget to share this post if you found it helpful and follow us for more C# programming tips and tutorials. Happy coding!
Related Posts:
#Day 5:Alphabet Pyramid Pattern
Pattern Follow us on Instagram:
@LearnCodingWithDotNet for daily coding patterns and tips.
No comments:
Post a Comment