Can not set the value, help, please.

program ggwp; var a,b,c,d,e,g: real; begin readln(a); b:= write('asdasdsa',b); c:= write('ggwp'); d:= write('asdasd12123123'); if a= 0 then writeln(b); if a>0 then writeln(c); if d<0 then writeln(d); end. 
  • one
    Format your code (there is a special button next to it). - DreamChild 2:51 pm
  • What should the code do? Strings are stupid to compare with numbers. this is not js / php. - slippyk

1 answer 1

An obvious error immediately catches the eye - for some reason you are trying to get a return value from the write procedure, whereas this is a procedure, not a function.