volk23 73 Posted March 27, 2015 Report Share Posted March 27, 2015 Добрый вечер, есть проблемка в паскале http://prntscr.com/6m01c6 как мне исправить ошибки в коде? Link to post Share on other sites
VIP styoplotr 514 Posted March 27, 2015 VIP Report Share Posted March 27, 2015 код сюда вставьте Link to post Share on other sites
volk23 73 Posted March 27, 2015 Author Report Share Posted March 27, 2015 program primer1; uses crt; var; c, x, y: real; begin y:=5 c:=(1+y)*(2*x+sqrt(y)-(x+y)/(y+1)/(sqrt(x)-4); writeln ('pri x=x'); writeln ('pri y=y'); writeln ('pri c=c'); end. Link to post Share on other sites
mojo 79 Posted March 27, 2015 Report Share Posted March 27, 2015 ; после var убрать. А в скрине, представленном выше, при объявлении переменных, правильно запятые использовать. Link to post Share on other sites
volk23 73 Posted March 27, 2015 Author Report Share Posted March 27, 2015 ; после var убрать. А в скине, представленном выше, при объявлении переменных, правильно запятые использовать. как правильно использовать Link to post Share on other sites
mojo 79 Posted March 27, 2015 Report Share Posted March 27, 2015 У вас на скрине было var c: x; y: real; А нужно var c, x, y: real; После y:=5 нужно ; В c:=(1+y)*(2*x+sqrt(y)-(x+y)/(y+1)/(sqrt(x)-4); не хватает закрытой скобки или лишняя открытая. Вывод должен выглядеть так writeln ('pri x=',x);writeln ('pri y=,'y);writeln ('pri c=',c); Link to post Share on other sites
mojo 79 Posted March 27, 2015 Report Share Posted March 27, 2015 Короче program primer1; uses crt; var c, x, y: real; begin y:=5; c:=(1+y)*(2*x+sqrt(y)-(x+y)/(y+1)/(sqrt(x)-4); writeln ('pri x=',x); writeln ('pri y=',y); writeln ('pri c=',c); end. В формуле ошибка Scream23 1 Link to post Share on other sites
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now