63 034
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #28977 in C# for sharmila rani

Question #28977
Program to generate even No. 22 to 40
Expert's answer
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
}

}
}




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions