p=input("ตัวเลข");
if(p>0)
printf("\n positive")
elseif(p<0)
printf("\n negative")
else
printf("\n Zero")
end
-->exec('C:\Users\5810110621\Documents\intro2.sce', -1)
ตัวเลข20
positive
-->exec('C:\Users\5810110621\Documents\intro2.sce', -1)
ตัวเลข-5
negative
-->exec('C:\Users\5810110621\Documents\intro2.sce', -1)
ตัวเลข0
Zero
ไม่มีความคิดเห็น:
แสดงความคิดเห็น