|
|
вернуться в форумWhy I have "Wrong answer"??? Pascal var a,b:real; begin readln(a); readln(b); writeln(a+b); end. Edited by author 10.10.2012 17:42 Re: Why I have "Wrong answer"??? Edited by author 13.10.2012 20:39 Re: Why I have "Wrong answer"??? I'm not a Pascal programmer... But... Maybe because these digits are on the same line and you should use "read" instead of "readln"...? Re: Why I have "Wrong answer"??? Послано Noob 14 окт 2012 00:53 Yes, read instead of readln, and also longint instead of real |
|
|