Hi! I have a problem with read.
This is part of a program i wrote:
var b, c: char;
a: integer;
begin
read(a);
read(b);
read(c);
writeln (a,b,c);
The problem is that, when i entry, for example, this values: 4 a c the program returns only 4 a.I think it's taking the blank space as a char, but when i write, for example, 4ac it returns an error. So i guess i'm not getting how to read correctly integers and char. What i dont det it either is tht i've seen a program using the same idea of reading and it works just fine, but when i do a similar one, i have to add a condition to not read blank spaces.