C Programming Notes
C Programming Notes
Page
No.
Date o wser a'YdeAdisplay
at
algozitha
sBeps
offox cirele om
(o
of coe
any
ALGORITHI
ilaoithm axea /Loput
Oriiag
Bedoe
pobem
Set
a
outeut Oulipieaionad adius
-2 5ubtyacton to
1=d)
yision Expected odius Sdepyiziat
G
output a-cea
is taddition
algoathm
ond Algoxidhm
ond
AonchotAloczithm input taxt
1:Step
take Eod
Step5
Opexadasá ingt
&Sumbols: Expected
Lbite 2
step
dhe
K
Page No.
Page No.
Date
Date
Eod
Date
studet
Studet
Noid Gudeat cat ideatica
Notional staada STudertJ bet idette
Yold bxenk Constots
doutle Volasle Caie do
zehg Ssoitoh zhile ahar ttnst Contone Cons tontt
plse
Tategex Costant
Rnles) t must+ have tenst cne dig
include <siahy hege i) st shad oat hoNe o decimalpoiat
incine <Cooie ht co
sthe Constant
CHscY
2dehcs
age No.
Page No.
Date
Date
Naodoble
t is an entiy chat may choage
Te nnge depenson Conpile
Rea Conelart They asce used fox declaxing the soxiable Data sype
Poaingpoit Canstont deaides sthe sige allacated fox
\Maoble
Can
3:4e".393t
Tangei deubllange
ate
)icBudes
stdia h
?
yetusa
Statemeatay maiaiat
Statemente
Statementydeclatian/dekinataa Noid Sototemene moiei()
nd
kloaiah)
ipalude
eprgranmigiSyatax
Bosie
Statemest ia
maincl (WELCoE
end
maia To
Stat PCe)
Date PageNo.
gebchCy
85S oat
(a) usex rom Nalue integey take
Char %e2 ()main vaid
oat 1. de<coaia.h> inclu
Statosh)iacude<
Condgins stieg Control ideest siaple Calcalato
the
Conalstdrg" SConf
Suatay
Canfc) S
etoxn 46AoatQ
malo Noid
Sphée (Nola poziat KCanio
hz include
<Sthdia
h) oclude
Charache
ieg pziahiag d
value stag foznat
C)main Meid
LCoaioh incude
<Stia-h incude
Date
No. Page Date
Cuge No.
Date Page No.
Date
int a,btempi
LalYser)
+e mpa
print
hetemp
Qetche
the voue ct Cone
iacude K5tdioh Rogan to Suo tatthot the pog twithout
incude &Cono h
od maìnl indude<stdio -h)
incluode <Conio h2
Noid moinl
Anat
clYSCxC
Print CEatey dhe Nolue f k h =" )!
psint Ç Estex alue tak ")
porin CNolune Cone is .
Jtolume qetchl)
Q:aab2shest eat Date Page No.
Date
Assiament opexataz
adoteme Shoxtcut
additiua
mpicatia
madulo (yemiodel
vaue (5xË- 2) value (5 j2)+delta
include kConin hy Nalue (5Ë-2)delta
Void maia Cl
operatax
ml
egm=+L
his operaox Substack one to the opeand
pcint e
using the oziginal walue Lthen Voialr is iacsemes
equal to equala
phen pe fiy ia ued in erpression yoriable N
faigmetpeabz ncYeme ted < decemenhed f then erpresea s
ealucted ing nen al e od aable
Puge No.
Date Page No.
Date
Conditioaal opexatox
byte dhe operond occupie The operond ay be erint Centex the deoo Aum hex")
dataye
4)itepraganpind the sige d each data y
4include <stdioah)
inolude kConich
Logical
pxiatfCige ol chax data ype shdSige atohay
Logiaal4 C)
lpxint Cla Si_e dSead datatpe dsige d Shandy
print nsiged loag data hpe ,Sige d [angly
dch
Not
Date Page No.
Date
locludekatdia. hy.
incude /Coaiohy
teSut Ca=b)
piat Valåe yeult is yodesut)
esult = Cas ab) lL(c<t)
pzind
oPeroste
6
12 66
6 ooololoto
272
Co01tool
\ol olololo)ol
Date
Page No.
Date
LclxscC
aetch C)
Snallex) is
r"y piat
moA yoid
atey StoBement
Check
hlack else Stademes2;
else
statemtlCondi
tan if
Syalak
cCondiHaa) if
else iP Statement
Decisiao
2|
statonent cofContvol 28|8|9
Dute
No. u¡e
Datt
uge No.
Date Puge No.
Date
plse
is add
the given Aa
6tatemernt alocK 3
iocude <stdigh)
jnclude AConiahy
dest nested
tnt n
Gedy
ot
Body of
- :fCn%e22 6) else Oedy of
ABted
else
(End
Staement hlack
pase Date
Gtate ment
hxealk;
Coc Constoat 2
+hude 4stdioh Statement e
nclude <caabuh
Moid man C)
Stadc mert a
Lint Cao Vnit)
Loefaut
clsscYC) Statc meaty
priat ( Entex custo mkx o uni")
Ll 23 ot Cunitr 6o6)YO. 85
else ClrSor
Scan"d",
Suoltch Ca)
ka),
pria bil paid hy Cus tomex bi)
Co e!
print FC ond);
Puge No
Dute
addidion,
eite a n f g a a te pesctoy n
me
basean the e Choise
alipication dis ten
Neid Maiat)
lcxscci
ezid CEde the value a n
SoitchEACop
GACoe
brealk
heak
Caie