summaryrefslogtreecommitdiff
path: root/659/CH4/EX4.9/exm4_9.sce
blob: e0de109f2e03549085fa3142ca5071d40b94b71e (plain)
1
2
3
4
5
6
7
8
9
10
11
//             Example 4.9       
// The program illustrates the output of integer numbers under various formats 

m=int16(12345);       //integer variable m
n=int32(987654);      //integer variable n
printf('%d\n',m);
printf('%10d\n',m);
printf('%010d\n',m);
printf('%-10d\n',m);
printf('%10d\n',n);
printf('%10d\n',-n);