65 660
Assignments Done
99,2%
Successfully Done
In October 2018

Answer to Question #62008 in C# for joseph

Question #62008
i have to write a program that will output odd integers in the range 1 - 29 in c#
Expert's answer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _62008
{
class Program
{
static void Main(string[] args)
{

for (int i = 1; i < 29; i++)
{
if ( i%2 != 0)
{
Console.WriteLine(i);
}
}

Console.ReadKey();
}



}
}

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