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#
1
Expert's answer
2016-09-14T12:48:04-0400
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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS