# For loop in 15 min increments

Hi I am trying to run a for loop to generate a List<String>  for a dropdown list that will allow users to select a time value based on 15 min increments
.25, .50, .75, 1.0, 1.25   etc...

this is what I have so far but it keeps returning "0" 's

``````protected List<String> fill_ddlDuriation()
{
List<String> lstDuration = new List<String>();
for(int i = 0; i < 720; i += 15)
{
i = i / 60;
}
return lstDuration;
}``````
SOLUTION
Andrew Crofts

membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.

membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION

membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You could also use linq:
``````using System;
using System.Linq;
using System.Collections.Generic;

namespace EE_Q28570067
{
class Program
{
private readonly static List<double> durations = new List<double>();

static void Main(string[] args)
{
durations.AddRange((from i in Enumerable.Range(0, 720) where i % 15 == 0 select ((double)i / 60f)));
foreach (var duration in durations)
Console.WriteLine(string.Format("Interval: {0}", duration));
}
}
}``````

Produces the following output:
-saige-
Scarlett72

Hi below was my solution, thanks to all for your feedback, not very familiar with linq syntax it_saige, but thanks for your input.

protected List<String> fill_ddlDuriation()
{
List<String> lstDuration = new List<String>();
for(int i = 15; i < 735; i += 15)
{
Decimal minResult = (i*100) / 60;
minResult = Math.Truncate(minResult) / 100;