for loop declaration

Program:

Output:

Loop started

The value of a:–1

The value of a:–2

The value of a:–3

The value of a:–4

The value of a:–5

The value of a:–6

The value of a:–7

The value of a:–8

The value of a:–9

The value of a:–10

Loop ended