- Here’s the best way to solve it.Solution100% (1 rating)
TO PRINT THE PRIME NUMBERS:{using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication16 { class Program { void prime_num(long num) { bool isPrime = true; for (int i = 0; i <= num; i++) { for (i…
View the full answer