Algorithm Form Running time

for(i=a; i<=b; i++){ 0(1)

//Loop body requiring

//Constant time

}

for(i=a; i<=N; i++){ 0(N) Linear time

//Loop body requiring

//Constant time

}

This is a example in a book but I do not see why the first loop is

faster then the second?