! [enter image description here ] 1

from the sixth line gives an error, although I am writing from the textbook, what's the problem? Pascal AbsNET. Use real numbers with integers.

b:=n; writeln ('b=',b); n:=trunk(a);writeln ('trunk'(3.6)=',n); 

Closed due to the fact that off-topic participants Alex , user194374, pavel , Denis Bubnov , Denis 7 Dec '16 at 10:36 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - Alex, Community Spirit, pavel, Denis Bubnov, Denis
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • The line is indicated with an error - Stanislav Grotto
  • four
    And where begin ? - Alexey Ten
  • one
    check the textbook syntax again. You have at least not enough begin , and there is exactly an error in line 7, because of the quotes. The 8th line has an extra equal sign - JVic
  • 2
    Yes, I already saw)) Tin, disgraced)) - GProst
  • Thank you very much for the answers) - GProst

2 answers 2

After the third line should be begin, on the 7th line the second apostrophe should be superfluous.

  • Try to write more detailed answers. Although plus, you have the correct answer. - AK
  • @AK, okay? o_O - Qwertiy
  • Hmm .. And why the compiler on the 4th line does not swear? Is it possible to do so? - Qwertiy

Answering the question, How to find an error in the code? I can only say one thing.

  1. Create an empty program
  2. Run - started - well, did not start looking for an error.
  3. Add one line from your example and run - so you will see which line was reprinted incorrectly!
  • If you add a line with Begin - you can look for an error too) - AK