Below is an example of a for statement in C# – a for statement is a form of loop which can be used to make a normal loop look neater and it is very helpful:
{ for (double amount = 10; amount <= 100; amount += 10) { if (amount <= 50) { Console.WriteLine((amount) + " \t " + (amount * 5)); } else if ((amount >= 51) & (amount <= 80)) { Console.WriteLine(amount + " \t " + (amount * 4)); } else { Console.WriteLine(amount + " \t " + (amount * 2.50)); } } }