วันจันทร์ที่ 11 กันยายน พ.ศ. 2560

If else 2

p=input ("ตัวเลข");
if(p>0)
    printf("\n positive")
   
elseif(p<0)
    printf("\n negative")
   
else
    printf("\n Zero")
end

-->exec('C:\Users\5810110255\Desktop\dadada.sce', -1)
ตัวเลข0

 Zero 
-->exec('C:\Users\5810110255\Desktop\dadada.sce', -1)
ตัวเลข5

 positive 
-->exec('C:\Users\5810110255\Desktop\dadada.sce', -1)
ตัวเลข-5

 negative 

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

Excel02

https://drive.google.com/open?id=0B_E2CSSvxI-pck9nWXNUN3NQc2s