Hãy đề xuất các Test tiêu biểu cho bài toán trên.
Quảng cáo
2 câu trả lời 645
program Testtuoi;
uses crt;
var i: integer;
Begin
clrscr;
write('Nhap tuoi cua ban'); readln(i);
if (i<18) then writeln('Ban la thieu nien')
else if (i>=18) and (i<=39) then writeln('Ban la thanh nien')
else if (i>=40) and (i<=60) then writeln('Ban la trung nien')
else writeln('Ban la lao nien');
readln;
End.
program Testtuoi;
uses crt;
var i: integer;
Begin
clrscr;
write('Nhap tuoi cua ban'); readln(i);
if (i<18) then writeln('Ban la thieu nien')
else if (i>=18) and (i<=39) then writeln('Ban la thanh nien')
else if (i>=40) and (i<=60) then writeln('Ban la trung nien')
else writeln('Ban la lao nien');
readln;
End.
Quảng cáo
Câu hỏi hot cùng chủ đề
-
29342