using System; using System.Collections.Generic; using System.Linq; using System.Text;
namespace generate_even_No { class Program { //main function static void Main(string[] args) { for (int i = 22; i <= 40; i++) { if (i % 2 == 0) {//generate even No. 22 to 40 Console.WriteLine(i.ToString());//show numbers } } Console.ReadLine();//delay }
Comments
Leave a comment