2 câu trả lời
uses crt;
var n:longint;
begin
clrscr;
write('Nhap n: ');readln(n);
if n>0 then writeln('n la so duong') else
if n<0 then writeln('n la so am') else
writeln('n la so khong am khong duong');
readln
end.
#include <stdio.h> void main(){ int num; printf("Nhap mot so: \n"); scanf("%d", &num); if (num > 0) printf("%d la so duong \n", num); else if (num < 0) printf("%d la so am \n", num); else printf("0 la so khong duong va khong am");}