sory im complete newbie

i have

include <stdio.h>

int main()
{
int x;
   for(x=1; x < 10; x++)
   {
   
printf("%d\n second ", a);
   }
return 0;
}
for.c:1: error: syntax error before ‘<’ token

Hmm you are declaring the variable "x" for controlling the for loop and printing the second values but usign an undefined variable "a" for printing the desired output ?

ups

but still doesnt work

include <stdio.h>

int main()
{
int x;
    
   for(x = 1; x < 10; x++)
   {
   
printf("%d\n second ", x);
   }
return 0;
}
for.c:1: error: syntax error before ‘<’ token

Oh silly me and silly you !!!

Where is the "#" symbol before the "include <stdio.h>" part of header inclusion ???

This question has already been answered. Start a new discussion instead.