I just started studying pascal and I have to do a pascal program as homework.
I made it but I don\'t know how to count the number of decimal places in a real number<
if you're actually doing a writeln() output, surely just
writeln(x);
would accomplish what you're after? If you actually want to count the number of decimals, you'd probably have to convert to a string, remove any trailing zeroes, and see where the decimal point landed.