what could be wrong with this programming?
Code:
# include <std.h>
int main ()
{
int x;
for(x=0; x<10; x++){
printf(" %d/n" , x)
}
getchar();
return 0;
}
was trying out the loope for and compiled this simple programme bt i dont understand what the output means. pls, could someone compile it and let me know what the problem could be?
Even if the others said it before, I am saying it all in one
Fisrst of all, If u do not want to indent, because C does not require it( I reccomend u to learn it), u can just put all of te code on no indent!
Second, From what I see, You know nothing about C, no offence! I do not know much myself!
And third, as a good practice, write your own code, don't just copy!
As Keringham and Ritchie said, and many others, "You can only learn to program in a language, just by writing programs in it"
Writing code is a very good practice
Sry for any offence and I hope you will take these people's advice and learn C!
It is a fascinating language!