Hi, I've been playing around with this idea of program which probably has been made already million times but i cant get mine working for some reason, its supposed to write numbers 1 to 10000 for now just with printf, but the idea is to get it to write it to textfile and in format: 00000 00001 00002 00003 and so on...
my compiler says:Code:#include <stdio.h> int ruu = 10000; int var = 0; while (var <= ruu) { printf(var); var++; }
error: expected identifier or '(' before 'while'
Compilation failed.
also, I'm on ubuntu 10.04 using Geany.