Viết chụp trình nhập số X từ bản phím .Đưa ra thông báo tình già trị của biểu thức x/2+3 07/08/2021 Bởi aihong Viết chụp trình nhập số X từ bản phím .Đưa ra thông báo tình già trị của biểu thức x/2+3
program oken;uses crt;var x: integer;begin clrscr; write(‘Nhap x: ‘); readln(x); writeln(‘Gia tri cua bieu thuc (‘,x,’/2)+3: ‘,x/2+3:0:3); readln;end. Bình luận
program ct; uses crt; var X:integer; Bt:real; begin clrscr; write(‘Nhap so X: ‘); readln(X); Bt:=x/2+3; write(‘Gia tri cua bieu thuc ‘,x,’/2+3 la: ‘,Bt:4:2); readln; end. Học tốt! Bình luận
program oken;
uses crt;
var x: integer;
begin
clrscr;
write(‘Nhap x: ‘); readln(x);
writeln(‘Gia tri cua bieu thuc (‘,x,’/2)+3: ‘,x/2+3:0:3);
readln;
end.
program ct;
uses crt;
var X:integer;
Bt:real;
begin clrscr;
write(‘Nhap so X: ‘); readln(X);
Bt:=x/2+3;
write(‘Gia tri cua bieu thuc ‘,x,’/2+3 la: ‘,Bt:4:2);
readln;
end.
Học tốt!