Thread: for loop code
View Single Post
  #6 (permalink)  
Old 07-11-2008, 07:50 AM
payam.a payam.a is offline
Newbie
 
Join Date: Jun 2008
Posts: 12
Rep Power: 0
payam.a is on a distinguished road
Post Re: for loop code

thanks dear friends;
as you know the first expression of a for loop shoyld be initializing a variable.
but in the code that I wrote, there is another thing instead of intializing I have used a printf function. I mean, is it correct to do these jobs? if it is correct whatelse can we write instead of the first expression in a for loop?
thanks
payam
Reply With Quote