C# 1-10
C# 1-10
E
DATE
Pxqctic al (A)
demaostatlon
theszy
Print a xb
wilting ettectiec aole
ypes of
aperand inaluding
Rinay aperaipa s These tuo apeind a
eloss
stot)c
output
Substvation of 00 ond 3 i5 7
out aut
Substao ctieo
Multiphcot ion of 20 o0J 3 js 30
Diyjs)on ot I0 and g j53.333 2333 Aditjoaof
Mulkiplica tian ef J52.3333
Conclysion - Hence Jwe hove Svcce65 tully
exec vt ed the C psjvum 7D demonslrote We
the VSe ot arithmetic DperatDrs,
exec wte the
demonsthote the
Y.C.C.E
DATE
Proctica) )(B)
Aim - w)te Pegrom Practica) LB)
to swap two
Flowchoxt Am
AVobers
stqrt
temp 9 OM M DO
=b the
Method, yoy declre thid y2riObe store
af thea
the
oyer Wrt e first Dabe
/Priot ottes sw PPin9 191b/ Fioe)y aGBigp the First
G10p ) lhe
the
Gybstiactieo -
4he pInpertie 6
Thic methed
of
the
trom he other
Y.C.C.E
CATE
Paqseo
class Guap
Gtatin
teap
Console, Write liap (it Ater swopping
Volues
System
Syalumey
yotem, Texti
Gi2coflot):
2, 11
S)zepf Lchod
coASele , Wyiteliae (tk sizenf Laube)i fo3 n,
Y.C.C.E
GATE
outp ut - Qutput
6)2eofiot) 4
sj2e of Cint: 4
sizeof (floot) : 4
S) ze of (chor) :2 Gi22 Df lchar) i 2
a)220f Ldevb)e):!
si2eof Cbool) i 2
thot
Y.C.C.E
DATE:
Parsc
Preqreo
uslna yslensj
Joyble
Y.C.C.E
DATE:
Dis tinet 1)
Yoot = (-LtMoth, Sgt leg))a o)
Equal 1);
ceosole . wteae(Rnotsexe
output i
Conclu5)0 h -
Heoce , we hove hore
executed the c# sucCe6sfully
program to find
Heney we
the Yoo ts of
quodrotic equotien.
Y.C.C.E
DATE:
Practical 3cA)
Pxactical 3CA)
Aim wite
wether oUmbex is po)odyom
check
to check
Aim- wYte cHprgiam jspalindreme
Flowchalt - whe ihex thegives
Stort
Tha axy
PaliodroMe Palindome Duphere
K(Input nUmbey thot retain thely velve when thelr
=Yeerse integers They hold acexdaia
YeYeISed
digits Mathe Maties dye to thelx uniqhe
yes
prepery of Yemaia io4 uacban qed whe o xead
int (6 Giyeo
PiOt 20 Given
A eher Fphples of paliadseme s
numbex is polindauoc Polindeomc These
hold Cultulo) lga)fican ce jo vorlous
60cieties ad often 55pated with
To check f a
the OWm be x
you typically xevere
t with they
the the palipdreme
Y.C.C.E
DATE
Progxon.
PalindrpMe
classTest
(E)
Pxac tic a) 9
frngran
wsing
class Quoter
pDblie static
stat)c Vold Maio C)
foxli= 0 j < 3 0 t + )
3
3
Y.C.C.E
DATE
output
E ven 0umbc
4
6
12
14
16
1
20
22
24 22
26 24
29 26
23
od pUmbe
11
13
15
Y.C.C.E
DATE
19
22
23 24
25 23
27
29
29
Flo wehort
Theoxy -
stort A leap yeal yeat wth an
adled to hecp the coleade) syochxn oized
Priot Entes 4 ycor with he G elGOOS becausc
Joput Tot yeax, Eathr6
takes thao 365 deys
Yeoty. 4==o to check
NO ways
tf the yea
yes
Pangram
Aim - wIite to
Floy dstoiangle
dicploy
with9oumevicmode Practical 5 CA)
Aim wXite to dieplaj
Flowchoxt -
start FloyJs tieagle with
Pragram
class Program
forlj=
console, wrteliae0
23 3
4 5 G 4
12 12 13 15 15
Y.C.C.E
DATE
Hi Progaam
Hi
Time Elapsed: 00:00: 00. 0024164
yGing sy stemsj
G Microsoft Visual Studio Debu X Wslog Sy steou DiagabG t)as j
Hi
wsing systuo ThxLoding
Hi
Hi closs
Hi
Hi siatie wsl Main(stiiag laxgs)
Time Elapsed : 00:00:00.0022734
Siopwateh stopwath ûeN Stopluateh C)
C Microsoft Visual Studio Debu X 5tepwetch StaxtC)
for CiDt=o ++)
Hi
Hi
Hi
Hi
Hi
Hi
Hi
Hi + stapeateh. Elapeed
Hi
Hi
Time Elapsed: 00:00:00.0032609
o|P Peocentsg C
Y.C.C.E
DATE:
Waing Syslems
class Mokcheet Gehexat o
2 Maska
Ghee 2)
e Mork5)
output - outpu|
EOter 5tudent A3e ABC
En ter Sto Jent namc
50c) a) stvdics 2. 70
Toia) mosks Jote) mk6
Pexcentu ge 70.007.
Practica) 7
to make
Aim- write Program Prqetic a)
ATM m9chine tY9psgctioo.
simple
wrte Prayra to oaKe
Flo wchart - ain ple AIM machiae transgctioa
using syslam j
class
else
COns ole wIitelne (i6La lo P) EASE
ENTER cORACIPIM ")
AMO NI TO WIIHDRA w
ENTER THE AMOUN T TO wI THDRA W JHE
506
Practica) &CA)
Ajm - Write Progiam to
Dis play Lowed Tiz0 ghl ax
Floweh art - Aim wite Display
stort Lewer Trjzngul ar Matix.
+unt tlon
lower- tyiongulay The ory
matix Cuser mot) x A pigra thot
trienqulax Matx Malifies the joput
Vay = o 2ex0es aboye 4he
Dhe itselA remol
NO User_ matriX
length
LoweX Matiix A squoie motiix
Yetun true yes where elemeots abore the dia qen al are zro
Diegan a) The eleme0ts the tlplef
to the bott M right
usor-m atrjx Co)lengtn Square
Ex ploO Qtica
yes
Ttexoe the m2trix
NO 1tera te
thxeugh each calueo C) withia that
res the
3. curreo t clemeots positiza i )
folse the Jiagonal G<,sed thot
elemest
stop
ine Io
Convert
wrte CeDsole
Matrx
the elermeots put 0Wteint
(22 sole Cop
Realline
lD 3olConsale Iat To
CeDyert
tbe f the 22 G) the Taput (i! wrideConsaler
(1!wade Censele
owet lbehe play Dis la lo 'iwaite ole Cons
WOe
iot
sletie publlc
Exeoc)se26
public
stem sy using
Pxegxem
DATE:
Y.C.C.E
L
else
writel censale
setiag lo wte Console
anli wite(1o3 Censale.
Motrix The wide( eole, CO0
DATE:
Y.C.C.E
Y.C.C.E
DATE
out put
Pis play the lowex ag)ven Display thelawer
mutoi X :
conclusìon.- Hencey W
have succ esstully baye Sucre ss fully
executed the to Pisp)ey the exete the piagram to Diaplay the
Lower tolang u)ox mots)X. Lower Matj
Y.C.C.E
DATE:
Poactical r(B)
proqram to
Aim - wjte
Matr)X.
Pxactic a) e2)
Display upper
Flo wchart
Ajp Wte Preqrso to Diaplay
5tart Wppez txianguar Matr.
functlon
uPp er tajogulaT - molri X Theexy= matlces
Vpper tiangula) baye
enties belw the
VOr=b Squere wpper tiiang ula fomn
elimiaatiaa
NO method.
uset-matzi
lengtn
Yeturn truc yes TreverGe the MetojX diagpolly storting frem
the top le ft
2. At elamoate
NO
elemet s columo
Th is
yes the frem 1he below
No
to 20S.
Syatem
publie alass EXerc)ce 26
tainagul az.
t+)
clse
Y.C.C.E
DATE
o ut put -
pisplay 4he upper triDn gular of giycn
motri the
pisplay Vpper
Topu:
To put
the
elemeo ts
size
io
of the square mgto)X 3
Taput the he
themotix
element - Lo), CoJ i 1 To put elemeots
clement 2 elemet
element eleme
elemeAt 3
element element 4
elermeni - C 23, C2J 6
element
eleme0
elementC2
The
J,2J
matiX Js: eleme0t
2 3 The )5
456 2
settng 9
5
2 3
sedtiag 2
MatX
o
+nlangular matair. tyi2ng
ula
pe s
9y Jipl toprPgrom the executed
the eute) s5fully sutce hove
conclus)no we , ce
hlen clusi
on con
have
DATE
Y.C.C.E
Y.C.C.E
DATE
Prqctjc a) 9
Aim - write to
progrom
Digils to wDtds. Pro ctlea) 9
Flow ch2yt - Ajm wzite
Digits
Theoy
Number Represen tatlon The pregro typically
hohdles 000
the ioto ondi vidua) tigts using mouà ulo
Maping
totemegt to map each diait (o-)
to Coriespon ding epreseltetlon
Piogrem
clacs cohNt
convert Digits Ta wozds
publlc stetic yold Malo
Iot
while Cauo )
Aumdigits
udigite-)
console wrile Liac)
conssle ReadLjoe
o ut put output
Entex the ounber EDtex the
64
Numbet 64 NåmbeY i
Num ber in word s i s}x fouy Nuohex
The exy
adhereto t h E n
detioesterke
Push This eperatioadds eleoeAt
to the toy f the atock Iis 1ke
placing aplate
Tbic
the elemot
hke taking the top plot off Lhe
pile.
to Imple ment stack s
Tais built-o clucc porides metheds ike
pep fo element oBolnulatiea
croate
List tD
|elemen ts add iapleMLni puch
AuactioAal/ty
Y.C.C.E
DATE:
Pangsam
using sy stem
closs Stack
pxivate nt aey
privaBeint t0p
pxirate at maX S2e
public stack nt
MaX Size
eAGPU
COn sale, wite Line lil stock is cmpty
Yetuo
3
1
Y.C.C.E
DATE
closs pregiam
5ttic
Console, witeLine lH Entee the izd
the
Stock steck
while (thue)
Consale, wite ine( \o Stotk oper atlo0s Meoui
Gw) tb (hesLe
Case
the
element
stack Pushlote
bicak
Y.C.C.E
DATE:
beak
break
Jefault
Plea se cotex
5tock 0protions
Menu oprotlaa s Men
0. Pvsh Push
2 Pop 2
3 Disp) ay
4 Exit
3
Displey
4 Et
Y.C.C.E
DATE