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
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
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 ???
oh crap
well we are writing math test tomorrow....
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.