C#
Use a while loop and if statement to write a programthat prints all the even numbers between 15 and 31
Solution
using System;public class PrintEvens{ public static void Main(string[] args) { int i = 15; Console.WriteLine(“Even numbers between 15 and 31 are”); while (i <= 31) { if (i % 2 == 0)
OR
OR