Hi dear friends;
I have a question about this code. please guide me.
what will happen if we don't write the first expression of the for loop.If we can write another things instead, what should we write?
please help me about this code.
thanks
payam
Code:
/* for_show.c */
#include <stdio.h>
int main(void)
{
int num = 0;
for (printf("Keep entering numbers!\n"); num != 6; )
scanf("%d", &num);
printf("That's the one I want!\n");
return 0;
}
this is it's output.
Keep entering numbers!
3
5
8
6
That's the one I want!