Professional Documents
Culture Documents
C++ Practical File
C++ Practical File
C++ Practical File
Hello woId
SHRI BALAJ STATIONERS 094946904
A
M. B. M. UNIVERSITY
ODHP
VERS JODHPUR
Date. .. Experiment No. .* * * * ... P. No.....
Name Roni.Kuma. Saini Faculty No. .. ******* Class... .....Batch..
OBJECTI
To display- a message Helo WOYd
in Tuybo C++
imclude LConioh
Einc lude Liostxeam . h2
Void main )
tch ) .
OUT PUT
T Simgle Lime
Nome Rohil Rols No. 123u,CJass B.E TT «d Sem ocal
Address 13 9ayatvi colom 3 odhPu,Pemonen* Addres ehyoT
Alwa
In multiple Line
Name Rohi
ol No. 123
CJass B.E r d Sem
Local Address 13 3oyatvi
Colony , 3odhpur
Pedmanent A ddress BehroY PAJwar
SHRI BALAJI STATIONERS 8949469034
M. B. M. UNIVERSITY
UNVERS
SITY,JO
JODHPUUR
Date Experiment No. ... 1 . . P. No.....
Name Rehis..KumAx...aini...
Faculty NNo. * *************
....Class. Batch...
OBJECT
******
To dSplay he name
Ko mo ClasS Local
AddxesS Pemanent Add xess
USing Single ine and
Multipleime Output im Iubo C++-
imclude 2 conio-h
nc.lude L Jostxeam_ h2
Void main )
CscxO
Cout TnSingle Line LLend
Cout L \h Name Rohid
Cout RoLA No 123u
Cout LLCJass 8.E I1d
Sem..
COwiL Loca ALdIess : 13 gayatri
COu L Permament Address colonyadhpul
Behyoy Alway LLenL
M. B. M. UNIVERSITYY
NVERSI
Y J O D
JODHPUR
Date Experiment No. ... .... P. No...4
*
Name... . Faculty No. ....Class.. Batch..
Cout L RalLL No. |234 2emdh
Cout LL CJass B.E Ld Sem
LLends
Cout LL Local Address 1 gayairi Colonyiodhpuy LLendl
Caut L Permanenk AJdrss Behro Alway
etch O:
OUT PUT
Addition is 13
Subtracfiom is 7
Multirlicatio is 30
30
Division s 3
Module is 1
SHRI DALAJI STATIONEHS 8049469034
M. B. M. UNIVERSITY
NvERS
OOH
JODHPUR
Date Experiment No. 2
.. P. No....
Name R9his..kuma. Sain... Faculty No. . . . . ....Class.. ..i.. Batch...
083ECT
Wite a P7oqram me n Iurbo c** that
Prink the Sum DiffeTence MultiplicationQuatienf
andRemaimdex ot two imie 9e numbexx.
Iniialine the intge wih Values lo and 3
inclade LLonio h2
include L iostream.h 2
Void main O
imta o b3
tch O:
OUT PUT
Enter First number 4
Entey Second number
Adaition is 20
Subsivaction i s s
MulsiP1i Caion is S4
Division is 2
Module s
SHRI BALAJ STATIONERS 9 8949459034
M. B. M. UNIVERSITY
UNVwVERSI
JooH
JODHPUR
Date . Experiment No. 2. .. P. No....6..
NameR.hi...Kumax..Saini.. Faculty No. .Class. Batch...
0BTECI1
wriiea PzogIam in tuubo Ctt_that
Prints Sumdiffexeace multiplicakion uokienA
amd eminds btwo iniegea mumbers
Ihe Tntt ge yalues are o be Entered by user
F incAude L Canin h
t imclude 1iostream.h2
Void main
ClscyU
inta, b
M. B. M. UNIVERSITY
M.
JODH
MUNNE
JODHPUR
Date Experiment No. ************* ... P. No... ******
etch O
3
OUT PUT
fov he re- inere ment
6
Fo7 he Post-incvement
6
For he Pe-decvemant
6
M. B. M. UNIVERSITY
VERSIT
J O D
JODHPUR
Date. Experiment No. 2
******************* ** **.** P No.. ******
Name Ronik.Kuma..Saini.. Faculty No. .. .Class..
..Batch....
,...^**
OBJECL.
wite oa Pxog10mme to ndeYstand he
incement ond deCXe me nt ot arithmetic_O peIatoY.
include LConioh2
t incAude 2iostteam h
Void main )
int aS,b
CYscI)
M . M. B. M. UNIVERSITY
JOOHPU
UNIERSITY
VE JODHPUR
Date Experiment No. ***. .. P. No.9.
Name ****
.. Faculty No. .
****** *** ....Class.. ..Batch...
CoukLLb Cnd LL a LLCnd J
M. B. M. UNIVERSITY
MUNIVER
JOD
JODHPUR
Date. **** Experiment No. .. P. No..1o
... .
Name Ro.his.kumax...$ain. Faculty No. ...ClasS.............batcn........
OBJECI
wTite a ProgTamme to ind the Sum and aveYa 3e
otwn loat mumbea
The numbers axeb beentered by the Sex
Hinclude Lconio-h2
Einclude Liostream.h
Void main
Sum atb2
average Sum/ _
Cout LL n Sum is "LL Sum LLendLS
Cout LL\n
Aveza9e is : LLaVeTage
ech)
OUT PUT
Tauth able for he ogical AND
oPeato»
SHAI BALAJM STATIONERS
994946903
M. B. M. UNIVERSITY
UNVER
ITY
JOD
JODHPUR
Date Experiment No. .
****** .P.
* No..I.
Name RohidKumny Saini.. Faculty No ....Class. .....Batch. **
OBJECT
wite a
Pyog1a mme demoS.ktate heJr th
tableof lagAcal AND OPexatoy
nclude 2comio.hb2
mslude Liostieam h
Vid ma in
tchO
OUT PUT
M. B. M. UNIVERSITY
ODHU
VERS JODHPUR
Date ******
Experiment No. . .... P. No..J.4...
************ *** . . . . . ..
. Ciass.... ...Batch
O8JECCI
Wzidea Piag1amma o demostrate he
Luth nblso lngical OR 0Piani.
Hinckuds Lcanio h 2
inLkud L io sttam.h2
Noid main
ini as10 b1 22
CYscyC)_
OB3ECT
write a Progxamme b Jem.oskrata utrth
ableof Jogical NOT opaYaor
nclude 1 Comio h .
H includa L iostram.h
Void main )
Cout LLLO) LL LL L)
2tchU
OUT PUT
M. B. M. UNIVERSITY
UNVEERSITYndHOOr JODHPUR
P. No..
Date Experiment No.
Faculty No... ..Class.. . Batch..
Name .Rahis...kumaY..SAIn..
OB3eCT
Ho o imple man.t_Rekakional0peiators
i n tAYho c4*|
Einclude 1 Conio.hz
inckude Lio Streamh2.
Veid main )
Clrscy)
61
Fox Bitwise Com Plement
2yo
ForBitwise Lef shift 0Peraor
M. B. M. UNIVERSITY
JODHPU
UNNENERS JODHPUR
Date Experiment No. . . S . P. No..S..
NameRehid..kumaX.Saimi.. Faculty No. . . lass.........Batch......
OB3eCT
How n implemcnt eitwise 0PeakoySin
kurbactt
#include LiOStyeam.h>
include 2 onio h
Void main )L
int a=60b 13