Answer to Question #62008 in C# for joseph
i have to write a program that will output odd integers in the range 1 - 29 in c#
1
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!
Learn more about our help with Assignments:
C#
Comments
Leave a comment