Im
currently using Dev-pascal with the pascal language and im trying to
make a simple program that you enter in the amount of folders you want
to make and it chucks out the folders right where the program was run
from. Problem is that I cant get the program to make the folders with a
number after them Program Example26;
Uses sysutils;
var count, input : integer;
Begin
count := 1;
writeln('Enter the amount of folders you want.');
readln(input);
while count <= input do
Begin
writeln('Creating folder ',count);
CreateDir('folder');
If count <> input then readln;
count := count + 1;
End;
readln;
End.
All
this does if make 1 folder called 'folder' but if I try putting the
variable count after it, it just errors. Anyone know? I doubt many use
pascal but its the only language I know.