0% found this document useful (0 votes)
12 views7 pages

CTSD Home Assignment 2

Kyxrdxoyrzy.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views7 pages

CTSD Home Assignment 2

Kyxrdxoyrzy.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Q40003olZ&

a Navya Sah ithi


CTSD HOMe AsIGNMENT-Q
a magiol tut, a haeln encaur
Guate Babed 6n uhat h
make quick dacibins .he d sosbend. heSules

beas a dhagen , thuy must indialdy Sun.


haulod douy tohida.
Je nticod
4 Jea a dac), tay Con datey antinue on thin
Path

maing Cautindy
int sho h Jhol hold, do Jased on dhu Guatue
they enCaunten
#incude cstdioh
fnt mainC)

chas cheatwu (20):


Printf (" enter the ouaune you encuntet)
Scanf ("4.", Guatusa);

Psintt (" Run\n):

elbe iy ( st scm p(
Giant ")=ro)
Pine(Hidel");

natitod\n;
Pintf Casland si 6hepe not to de
3

Padh\n),

Psatntt (" keep moving Corntiuauty \os

Jánge
Qo n c jscuss sduati ahe uing the cdoiuc
eranble.

dhoin
dtaic Vaualts :yo Guaa Vaialks dhat etain
Vale Jctuneen din alls, allauing to pesistunt
Jttoge ctthin oa unctin
). distie fundien: do dabie functins dhat Can ay dr Callec
that
\). functioa totic a(This
is Pintt
message() rintt Void Static
exompl tuncn llAotic
Count); \', Countom:
.d Poüntf
("
Countn
+t
C
Countl) Cumant inVoid
te=o, Coun fotStaic
example aba vaÛu /static
h?dio. <s#include
t
buntin arcess Jubuct towant you-Whun
fucien seueen sat maitain toned you Whn
Stusiens3 Benahcial
Calls
kurin dettan valu thin Jatoun Vobualta dtati
In Ouurmsnt Count () / countt:
in uunt Court

5 a i ib a Gouhieh al a bupornmet &nesd, Jep oulating


pischaed a astsmon
Jprt kat t eres the
Suce
Puscheses mote
Dunchoes hon 5 Jams, aby adsont oo 107%
Io%
he austeme

#in cdy de < stdio h


int main()

quatity »ftem Count 0;


oat psice , total = 0;

twhide )

beak;

tot a t tuantiy* oüce;


Item Count +ts
:"; nteqa ('ean
nter Patn
199t b4 one
exacky chuck
f tatck
to/bitwise &00)=
O, e Setusn
(o
tuo pouthua not ae numdneqotive aod o Ssetuan
O,
ofto(iotn) Rowe s int
zsdio-h clude #n
üntge quen a Chuck phegao
do
YMl0O00 and 1000, ol00) sO0I0 Dool
wtao to t£xki
bit 1one eraty Jususntatin
has dinay thun bait:
beas! hane
a the
t pourtsO Rundee,
discount pply
lalo o:9; tatalk
>5) Coont Ctem- H
Scan (":4 d", nom
I4Cig_ Poweh t d^um)

Dorm);
elbe

Ptotf ("4d i ngt a Powe


twoDom;
Jetun 0:

Afe hoa
the
Negotve ontreh'. a. 9 th ruunbn çs eactlto

DOrrt Pesitive Nunleh. 4 the nundre s etueen LÔS


Tuo oiqtt Poive Numles

ttihclude <tdio h
fnt main ()

Rnte enter anumlo ");


Scan t (" "d',
&num);
qle datu pesstve numben \n ).
Poniotf ("Too drat Positive
Pasye, pume In";
potnt! ('Lqe nonßren \n';
hetu o;

You might also like