0% found this document useful (0 votes)
18 views12 pages

C++ Programs

Uploaded by

jeetnaroth5
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)
18 views12 pages

C++ Programs

Uploaded by

jeetnaroth5
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/ 12

Computer Science 1 (Software)

C++ Codes

incudu ciastuomh
ude ccomehs
uoid main )

claon
Catee! Enten ta numhn
cins>a
(in2b

utchcy

- Vignesh Parab, XII/A - M105683.


Do Not Share (Confidential).
Page 1 of 12
Computer Science 1 (Software)
C++ Codes

buagkamnalodei

include <iastsaamsh >


#include <cmioh
void man )

it a, b,t;
cleocs;
Cast<<"ntu 2nigsi
a
cin >>bi
cout <<"n Byos quspi and

and
Lout <<n Al quap:" <<" a:"<<acc"
geth,

- Vignesh Parab, XII/A - M105683.


Do Not Share (Confidential).
Page 2 of 12
Computer Science 1 (Software)
C++ Codes

ngnladi
#
incuda ciakech
manc)

Corct<s
un s
nton 2
ntns
m|>>n2
hiuCnhm 2)
nn2)

n2=n2-n

geth;

- Vignesh Parab, XII/A - M105683.


Do Not Share (Confidential).
Page 3 of 12
Computer Science 1 (Software)
C++ Codes lodei

includ siastrmehs

int i, n

- Vignesh Parab, XII/A - M105683.


Do Not Share (Confidential).
Page 4 of 12
Computer Science 1 (Software)
C++ Codes

Buagamms Cordai

#incude siastuamh>
neluda <camioh
Vaid mmain)

Caut <<"n Lnput


Caut <<"An atis tempssucteng
cin nanhit
>2i
Cz- 32) *
(5.0/q. 0);
Cante<"\n -Oxtpat--
Cout<<n Jamp0natou in cacius is: <Kc
gthl

- Vignesh Parab, XII/A - M105683.


Do Not Share (Confidential).
Page 5 of 12
Computer Science 1 (Software)
C++ Codes

rncud Kiastuam.h
Encu (canioh

clssn
Cout<<i ntetNntnta chek:";
cin

getzho,.

- Vignesh Parab, XII/A - M105683.


Do Not Share (Confidential).
Page 6 of 12
Computer Science 1 (Software)
C++ Codes 13/o2/2023
CIhusacday)

atn odd mumbtns.


Tt:uit
hrenandLadd mumhcr:

as an
eur: Vaniabt
niord

Aaoed n huetirud galuo twillcout unbacf ucn anla=

odd.
botnertönd nwbes uih thwm athuluche

slo
oddscddtl
numtras.
aputiho uagamull pratoenaxd edd caurtud
- Vignesh Parab, XII/A - M105683.
Do Not Share (Confidential).
Page 7 of 12
Computer Science 1 (Software)
C++ Codes

include <iasdeeameh
#
nude <canio.h
o

int di,d2,da,n, 4
Inpt
ataxa theudt bused numbn:"
Cat<< "'n
in>>n

da nLoo
4= dtd2+da; --Output-
(at c<"\n

getch;

- Vignesh Parab, XII/A - M105683.


Do Not Share (Confidential).
Page 8 of 12
Computer Science 1 (Software)
C++ Codes

incudciastuamh>
#incdud<coniouh
void min)

inh ni, n2,qdi,la,lons


o
Couts<"Enti horua ni and ne;'";
cin>>n>>n2,

wtila ca22

cnn2)

n2n2-nL

- Vignesh Parab, XII/A - M105683.


Do Not Share (Confidential).
Page 9 of 12
Computer Science 1 (Software)
C++ Codes

inchudu<coia h

cdescnb;.

gth

- Vignesh Parab, XII/A - M105683.


Do Not Share (Confidential).
Page 10 of 12
Computer Science 1 (Software)
C++ Codes

Àcudex latam:h)

void naintJ.

n
>ni.

"c"n Odd nunbry

qtehej

- Vignesh Parab, XII/A - M105683.


Do Not Share (Confidential).
Page 11 of 12
Computer Science 1 (Software)
C++ Codes

Euagam (adei

indde Rastuam.h
<

()
Vadain

int n

Taput

cin>,
0)

Qutput
Cotse" Numbees liren,":

Oxdput

- Vignesh Parab, XII/A - M105683.


Do Not Share (Confidential).
Page 12 of 12

You might also like