C# program to print the prime numbers
Program.cs
Output
kodingwindow@kw:~/csharp$ dotnet run ——————————————————————————————————————————— Program to print the prime numbers ——————————————————————————————————————————— 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 ——————————————————————————————————————————— kodingwindow@kw:~/csharp$
What Next?
C# program to find the factorial of a given number
C# program to print the Fibonacci series
C# program to print the Fibonacci series using recursion
Advertisement