Solution 1:
Combine loops into one
Solution 2:
Move loop with its body inside separate function
Nothing more can be said without knowing context of these loops and what are they doing.
cant we create a variable or something like that???
Use an editor abbreviation (check the documentation for your editor.)
For instance (vim,allman) :ab forl for( int i=0; i<N; ++i ) <CR>{<CR>