0% found this document useful (0 votes)
8 views

C++Program

The document appears to be a collection of code snippets and programming concepts related to C++. It includes various examples of functions, arithmetic operations, and control structures such as if statements and loops. The formatting is inconsistent, and there are numerous typographical errors throughout the text.

Uploaded by

Mansu Chaurasia
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)
8 views

C++Program

The document appears to be a collection of code snippets and programming concepts related to C++. It includes various examples of functions, arithmetic operations, and control structures such as if statements and loops. The formatting is inconsistent, and there are numerous typographical errors throughout the text.

Uploaded by

Mansu Chaurasia
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/ 17

Title.. Page No..

Ç++ buagsantygage

Hhachele&hstoucam
int anaial)
)
Caut e" Aello

Pofat Name
Hinclale <iastaeams
fnaaal)
Cote"
Title. Page No....

()

Htncladoiosta)

stdioute'tHHn"

#inelalohs tneam

int des, bes, C, d, e,f:

=d-b;
Coutee" he resull is"e2de enell ;
Coutze" Hae yo) s"eeeea:
Title. Page No....

Hfnclucle2 iostnccLM)
int Knaia)

X=10

iYetunn 0;
Title.. Page No..

tinc huelaiastcasn S

cinsahi
Vaid shoLs)
C=a+bi

o.inbato
0i tun Te
Lenelamybenlan myblean coutee
Coutee"
nyletten<LBmli Coute'nletter 'e
lendli mytlaaknumcoutLeomytloatnun
emdlimumeLMAM
<L eoutee
trues
="Heo"i gtext staiog
d'i onykttess char
omytlaatauan
Se39 = double
tntomaia
annESpae
stdi U3ing
ttinclude2iostseass
Date
Title.
No. Page
Date:

(vfi) Aaithmetie ahesatan


Minclude <iostacams
uxing namseshare stli
Anain)

loat ob, Sum Submul, dv

Coute'emtez taehale ol alb"i


chssaSsbi
Sum= atbi
Coutee"tho sum is =2sum e enel];

Sub a-bi

Ceut <<" the mul is= mule emel

xetun o.;
Date:

Aasigamont abenalas
Hncduele Zataeam
using maomespaca stdi

Csute2(gcb)2 enlli
Coute (asbcL enel
Date:

apenaas
tacludle cios tneay
using nanespaca atd

nt a=Si

Cout ce (olbenll
Couteelalbse enl i
|Date:

iftatememt
#incluele ciastnea)
using snmeshace tdi

fnt qgei
Couteentez the value ea age =

CRutee" alaLocsl to vetei

Cetenat alloecel ta vat"


Date:

elbestteent
tachucdetostneaw
maamespa

Cauteemten the valua of

Couteealaoedta vate ce emdll


Cout Le"allaseal to many22 emell

else

coutee nat allowo) ta vete 22 enl


coutee'at alloDea to manny
1)

Cout e he this

3.
|Date:

Even Odal mamoen

tiachade eiostaeam S

nt n
§ns n

Cout na, i evem

elee

Coutee no. i od

etun 0i
|Date:

Stuiteh stateeati
Htnchuale Lios tneawms

suiteh Cuoekla)
Case :
cout ee'menalay
Case2

Coutee"ochesday"
beales
Cautee" hunsalay"i
coutee'Lidey"
bueaki

coutee saturelay
Case
cout esunday j.
Jazoeki
Coutze barOng ehaee";

3
|Date:

S
Nestol f elee statement
Hncluele Ciostnea)s

coutee
elasyanei

Cout ee

else i (time 20)


coutee' gorad slay

alse.
t
|Date:

Nambe

Afackude latneas

int
cout emtentae mm

Coutenegahsa mum'
else.

3
couteepositive
etutn 0
Date:

While doas statemeat

tiaclusle Liostneann

toutcei'i

cetsm 0

tncluclesfes tncasn s

han =0
uahile hes)

ht
w1etwn 0
J
|Date:

da- ahile statement ngpnam


taclusleLiastaeans.
using oname.sbae. stls

Coutee'HLheenli

tuahile hes

You might also like