Download Print this page

Casio PB-2000C Manual page 51

Hide thumbs Also See for PB-2000C:

Advertisement

3l
Aûp!$irychs*aæ
Thc following is the pmtm
list for our "Oùtput rrhlud' prcgm.
/*
O ulp ut
V a lu ê
* /
ma i n ( )
I
p rin tl( "D=lt d
H - 9 ô x
I
Thc tirrt lim is what w
â1lz
@ûruat
llre. Th€ computq
Eâds ftrything
b€tH
/,f
ad
* / s a @mmcnl,
ild
s tlEy arc igûoEd.
You m
us æmmcDt liG
i6idc
of pre-
8m
10 point out ænain
fatuæs,
or a mm6
for later rcfcme
Thc rcmÂinder of th. prcglm
iô quitc similù
to aùc one thât re crcated to output chrtr-
tcr strings ao thc displây, bul lhc arguDcDt
for priDtf læks
a bit differcDt,
Thc çomDs
inside of thc parenthæs
aE tlre
to s@aFtc û8umot&
This matr
that thc printf statc-
mqt
in ihis pmgm
has a total of fou
arSumols.
print("D=%d
H=$r
F=%f\n", 65, 65, 65.0);
---T--
T T Tom*'
+r * ry 6 r
l L t" * - '
L 2!d rri@
Thc ar8lrmors
itrsidc ôf rhc pâmrhcs
of pdntf tcll thc emputa
to prirt
thc follrying:
D= <65 æ dæimal intêgcr>
H:
<65 as hædæimal>
F= <65.0 æ flq1in8
point>
Note thd rheE is a dired ælatioBhip
*ith
thc l$ ?. coûstruciion
md thc 2nd ar8un6t,
tlæ znd 9r coGrrwtion
ud
the :'d ùlumcnt,
ed
the 3rd !b constructiotr
ard thc rlth
rrgmeûi.
This rcuodr
m
coofusing
lhal whât it e-tualty
rs, md )ou might
bcttÊr
unds$nd
it s iuuslratd
bclry:
pr in t
f ("D= cô d
H .9 6 x F- o É l\ n ", 6 5 ,6 5 ,6 5 . 0 )
;

Advertisement

loading