C# program to print the even and odd numbers
Program.cs
Output
kodingwindow@kw:~/csharp$ dotnet run ——————————————————————————————————————————— Program to print the even and odd numbers ——————————————————————————————————————————— Even numbers are: 0 2 4 6 8 10 12 14 ——————————————————————————————————————————— Odd numbers are: 1 3 5 7 9 11 13 15 ——————————————————————————————————————————— kodingwindow@kw:~/csharp$
What Next?
C# program to print the star pyramid patterns
C# program to print the star diamond pattern
C# program to print the prime numbers
Advertisement