Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
11 views
programs on simple computations
C programming
Uploaded by
Dhamodhar Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save programs on simple computations For Later
Download
Save
Save programs on simple computations For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
11 views
programs on simple computations
C programming
Uploaded by
Dhamodhar Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save programs on simple computations For Later
Carousel Previous
Carousel Next
Save
Save programs on simple computations For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 21
Search
Fullscreen
ecto A 1 To perform Acithmet(e operceti rotion Ss pin: TO write ac- Program to perform the ae operarions (sum gj , differen product, division ) ‘ , aigor'* mt ster | + Start cep 2 : ster Read a,b valuss gum, differen, product , divisyon exer 3 : print a,P volues stent gum =atb digherena = ab product = o*b aivision = alb geeeS print sum, aigference product, division step : StoP gource code * + include cStdioh 7 ype maind) at feu eG product, qivysion 9 f int yb, SU) Sa 4 yotuss" Ii scant ¢ gum, aif ferona ~ a-by product = o*b > aivisin = old) prins #C" sam = 74 argferena = 7 d products 74 ayyision = 7 at sum, aiggerene, prong division »y pemin 07 Scanned with CamScanner“star t) ro «4 4 | Read | ab valus | iB | uv Tpisplay a,b / / / voqus & | addition sorb “ ae / pisplay addittoyy guptyactvon , mursier cate) division (stoP ) Scanned with CamScanneron ected inp Ue % Enter a and b yotus B32 pureed ourpue Th sum =S The Ay Fferen@ =) Th product = ted iviston =) actual in put ener a and pb vows 3 % : oly ah sum =S TM arpferene cha product ae Tha aivision — Resurt * Scanned with CamScannerero SwaP two numbers Aime: TO wri MEE Qc - program ta gwap HOS numbers igorithm step |: Start step 2 + Read a,b, + print a,b Vows ste? 3 greP er too a-b bat seers print VOWS of Grd alex swapiry gter 6 stor source code * + ynciaaestdio-n? int moar TAC) { int a,b, 45 " b)) era toy pap > ae 1) a, a,b)5 Joluus of a and bed, 4 : ‘ a,d)) na b after gworing rgytd requxn D) } nab 3 Qo i t ois of aid Fupectea input * eter v : as expected oureut a and. b ager Soaring s 10 actual Input? Ene yous OF O and 2 tee ackUa) out put: a and b evarad swarind ap twa number. pesyrl + pena th program to gap +wWa numbers A guccesssuiry exec kd couth attferent vals Scanned with CamScannerFlow chart —_ = Scanned with CamScanner2 el © %- To perfor rn addit! Baia’ NEON of two numbers : To ( ae Cc Program +o perform sum of two atgoritm + step! Start step2 © Deciate a, b, sum ster 3 ° Read vaitres of a,b - gteP + Sum = arb steps : Display sum ster 6 : StoP source code: # includezstdio-h7 int maint? { ink a, b, sum) prints CY cnive vars of o and ); scant ("yd 18,88) $d); Sum = ats prints ("the sam is yd S40) | retarm D0; ' 3 | Expected input! | cave Waiuis of a.and b 2 3 Eu pec: ooreut> SerTh sum (s 5 10 ACTUAL F Beta OU PAE: IN PE: Gime yaluss Of a ant b S the sum iS IS i Q y | RRB Henk tHe program 40. ferform sum of | © pumbets hag sucessfully exucated with LZ Aitteens vais, Scanned with CamScannerFE lou> chat = [oees/ Scanned with CamScanner2 total and average of numbes To wie a ¢- Program whien Finds total and of numbers overage pigoritnm * eer 1 2 SHOE grep 2 peciare a,b, c, tnd. grep 3 + Read yours of a,b, C- eter t te arprte eer | avg = #/3 rer & | pisprray & and ayg etek 7 : StoP Source, code? 4 incudezstdioh7 int main) ¢ prowk GPL OND) prines (gine VOUS of a,b,6 9° scant rf ye vt Ro gp, KO) te arr 5 avg = t13) : ph 1, $09) printf (" Torat and average Ts 2 return 0} pupectes. an OY: wis of adie jo 1° 10 | Bxpecka pur poral and average 1S zo 10 pckuay npr + give yous of Adio 20-29 %0 urate * TEA! ana average 1s go *° + ence et progrart xO find 4otal and ed vaith Yruryag pas been sucessta\ts en cect ditferens Vals, Scanned with CamScannerStor peciar e _ a,b,¢,€ and og Read . a,bandc Fd ‘Scanned with CamScannerTo ei [ail aim: TO write C- program which finds simple interes igor thm * steP i: Setare seer? © vecioce p,T,R EST 4 gtep3 ) Read tht vanes of P,Tand R step 4+: S2T= (PTR) Jl0o greps * visrlay ST seer 6 stor source code: He Inciudkestdiorh > int mond) {Float eT, R St) a youues of @,Tand R25 print£ "9 geantC 18 aot pf", KP ET RR) gr 2 lek TERI II00 5 \ » seant € print é (" simp spice ts 7-4, ST) getumn Of : 3 expected pareur? give yoluLs of wie. © e 10 expeced/oureur * sire & narest VS 10 er, and g 2 2026 input : aive voruss of purPdd? giynpa in wese (S $° fogrart 0 find Free ACA WAAL Regutt: yen +2 execu ed FY differens vars sim PLL INK eS es Sumssfurg Scanned with CamScannerww a Declare P,T, and ST [fcaa 6.8] [er= re] Scanned with CamScannera 6. To find area of civcle aim? ro wnte a c-progr - ame to find . circ - the aren of aigon thm : seep 1 Start seer 2 Petlare and @ steed ¢ Read (ae )* Or shee + a grep s : PisPlay & eter & SxoP Source code + ge inciuck 26tdio 7 § Float o> pants" give voit of 0" )5 scare (“- “Rr)y ae gaat print C qu asea is VF, a); gerarn 0} 3 expected input Lee vous of 6 i tp afta tS it 10 Brpected 08F we vous of 0 400 pur: 9 roe Sle ure at The axes progam 40 find aro of eesurt: wence tH succes SFUNY enccud FOY ciccls Was difcexent Vales Scanned with CamScanner_eiow taste (®) ‘Scanned with CamScanner| ee to ! are 7 e Oo of triangle fim: To write ¢-program which Finds Oe ne pigorish™: Je, steel: Start gkeP2 + eclore h,b, & seep 3: Read b/h geet as (os) bh kee piselay & gree b ¢ stoP source code: “inciudacststo b? int main? { ftoox bP) printt cgi yas of band no cont (ee pe" Sv, Fn); as (o5)*b*h) ering Cok: area te TF, 9 resin 0} 3 expecked INPUT gine vous of pana h tO FP expected ouput area is 50 7 i Us of and h vO 20 paul ines give VAs bd Acesal © pur > TH oven 5 qoo peguk : ene 4h proysam 4o find area of excacuttd for Axi org has guces s funy yen ows Scanned with CamScannerand ‘Scanned with CamScannereee en g. prea of Tecteange ecform perform a c-program to cayeuete th exrcurcnte. the pim: Te axed of Tectangl aigornenen * glee) ° Start crepe © Seciare $,b, ea cter3 * Read 4> ter : asea = HP eter 5 s prysplay aree ete eb SHOP source code? gpinciade 25ts'0 h> nt main) { flow 4, d, AFCO } prinee Center Ugh cna breadth!) wyg TE, RAPED seat ( aren = dtd; esinst ("1 £ i", areas return 0) 3 expected Inport: enter length ana preadth 2 sypecte$ utr at! oxea = 3 pcbual inet Eniey gan and brecidth of Gee OF 4: | (ae recten gk s pena tk program of ofea of SOU ~ CCRSSFUNY enrecuit d worth arefesem yates Ee Scanned with CamScannerFlow chart [865 aves) Scanned with CamScannerBq, consi godt to fahrenbelt conversion pin: To perform O Cc-program +0 convert the temp re TOIT, from centtgrade 40 fahren. pigonith™ * gteP 1 + Start excep 2 ¢ peciare GF eters ° Reade gene = EASE cers 7 piselay F geeps > SHOP gource code * | Hincudezsidio: h> int moind) { roar GF 5 ; printt Cc’ enter pempercrs4re rn contigecide" 5 " t sane Cr $8,095 F = (c*ais +3) print CS TM gemperarure in pahsenrit 214A} gesarn dD; 3 pupecied InPUt: ; , Enter th fempercnrt in cenrigrak *20 pepected ousPeur * TH Eemnperoky ‘ im comig facta 120 Gp Fanren hevt = 63 Actual $ Heto convert © ca program © y pene epto9 yo fancennsl & tesuye ! cnt grad Aempercaure Fvo™ sucetsseuvy evecund wish aifsereitt Vales, Scanned with CamScannerScanned with CamScanner10. Fahrenheit 40 Centigrade conversion Aim vo perform a program to conwet the Lemperciwe from) Fanrenhtit to Cenrigeack. gigorith™ * gtep | i Stort ster? » peaare CF giep 3° Read F ger tC 2cr-3Urrg gies : pispiady C gees 1 gta ounce code #indude 2Staio-h> Int mainO § float ¢,F) ay pringt (Senter 4h fempercnure in eaineennet “2, scant Cy, FD; =(F-3*5I9 5 prinee Cogne temperate in Gnnigicice ah eran OF i expected Input: prner que in pansennit 268 in censigeo-se =20 ane demnporane 1% reinvent 68 pctuds ourrut > The temperature 10 consign =*0 pedutt: yence aw progecim of £0 carver fem perague feo FOnunniit £9 carsigeost & Sueasssuny etecued SAK fees von: a Scanned with CamScannerom we yc — ‘Scanned with CamScanner
You might also like
programs on conditional control statements
PDF
No ratings yet
programs on conditional control statements
14 pages
programs on loops
PDF
No ratings yet
programs on loops
21 pages
1st Sem C-Programming
PDF
No ratings yet
1st Sem C-Programming
11 pages
Pps Upto 39 PDF
PDF
No ratings yet
Pps Upto 39 PDF
39 pages
Cse 411 TT 12
PDF
No ratings yet
Cse 411 TT 12
9 pages
Java Practicals 2.0
PDF
No ratings yet
Java Practicals 2.0
40 pages
MCS-011 Problem Solving and Programming
PDF
No ratings yet
MCS-011 Problem Solving and Programming
13 pages
OOP Notes
PDF
No ratings yet
OOP Notes
24 pages
Java 4
PDF
No ratings yet
Java 4
54 pages
Maths worksheet 2
PDF
No ratings yet
Maths worksheet 2
19 pages
New Doc 03-29-2020 12.27.15
PDF
No ratings yet
New Doc 03-29-2020 12.27.15
25 pages
PROGRAMMING USING C ASSIGNMENT 3 097
PDF
No ratings yet
PROGRAMMING USING C ASSIGNMENT 3 097
8 pages
C Program
PDF
No ratings yet
C Program
78 pages
CTP Unit - 1
PDF
No ratings yet
CTP Unit - 1
18 pages
Notesof C Language by Abhay Kumar Awasthi Till Recursion
PDF
No ratings yet
Notesof C Language by Abhay Kumar Awasthi Till Recursion
27 pages
C&ds Programs
PDF
No ratings yet
C&ds Programs
21 pages
PPS Class Notes.3
PDF
No ratings yet
PPS Class Notes.3
32 pages
c programming
PDF
No ratings yet
c programming
26 pages
St Joseph ICT practical
PDF
No ratings yet
St Joseph ICT practical
51 pages
Array Programs
PDF
No ratings yet
Array Programs
9 pages
PIC Tutorial
PDF
No ratings yet
PIC Tutorial
7 pages
10 To 16 CGR Practical
PDF
No ratings yet
10 To 16 CGR Practical
35 pages
C Programming
PDF
No ratings yet
C Programming
42 pages
ICT Chapter 5
PDF
No ratings yet
ICT Chapter 5
28 pages
c++ unit 2
PDF
No ratings yet
c++ unit 2
46 pages
C Language Handwritten Notes With Sample Codes
PDF
No ratings yet
C Language Handwritten Notes With Sample Codes
103 pages
python model practical..(set 4)
PDF
No ratings yet
python model practical..(set 4)
65 pages
Ict 5
PDF
No ratings yet
Ict 5
9 pages
python
PDF
No ratings yet
python
17 pages
Basic JavaProgramming
PDF
No ratings yet
Basic JavaProgramming
138 pages
Programming Class 3 Note
PDF
No ratings yet
Programming Class 3 Note
90 pages
Assignment Las Tyr Bca
PDF
No ratings yet
Assignment Las Tyr Bca
16 pages
Unit 1 Hand Written Notes
PDF
No ratings yet
Unit 1 Hand Written Notes
42 pages
Computer Architecture and Organization
PDF
No ratings yet
Computer Architecture and Organization
56 pages
C Programming Module 4
PDF
No ratings yet
C Programming Module 4
30 pages
DCP Unit-2
PDF
No ratings yet
DCP Unit-2
22 pages
Unit2 Coa
PDF
No ratings yet
Unit2 Coa
52 pages
Lsco Assignment
PDF
No ratings yet
Lsco Assignment
23 pages
PPS Lab Manual Final
PDF
No ratings yet
PPS Lab Manual Final
120 pages
Python Assignment
PDF
No ratings yet
Python Assignment
7 pages
Computer Work
PDF
No ratings yet
Computer Work
42 pages
c assignment shreya
PDF
No ratings yet
c assignment shreya
31 pages
CamScanner 09-13-2020 13.33.24
PDF
No ratings yet
CamScanner 09-13-2020 13.33.24
48 pages
MP File
PDF
No ratings yet
MP File
16 pages
Advance C Programming
PDF
No ratings yet
Advance C Programming
50 pages
AKU PPS Pyq 2019
PDF
No ratings yet
AKU PPS Pyq 2019
11 pages
C Practical, 1st Year
PDF
No ratings yet
C Practical, 1st Year
129 pages
Lagrange's Interpolation
PDF
No ratings yet
Lagrange's Interpolation
8 pages
C++ Pratical PDF
PDF
No ratings yet
C++ Pratical PDF
26 pages
digital electronics
PDF
No ratings yet
digital electronics
32 pages
Basic Handnote of CSE-101 Course
PDF
No ratings yet
Basic Handnote of CSE-101 Course
43 pages
Extra Exercise Chapter 4 Functions
PDF
No ratings yet
Extra Exercise Chapter 4 Functions
27 pages
Day1 Cobol
PDF
No ratings yet
Day1 Cobol
18 pages
New Doc 02-07-2025 10.24
PDF
No ratings yet
New Doc 02-07-2025 10.24
10 pages
programs-upto 19???
PDF
No ratings yet
programs-upto 19???
11 pages
OOPS Practical Mine PDF
PDF
No ratings yet
OOPS Practical Mine PDF
67 pages
Lab 1
PDF
No ratings yet
Lab 1
2 pages
Mic Manual 14
PDF
No ratings yet
Mic Manual 14
9 pages
CN OBSERVATION NOTES
PDF
No ratings yet
CN OBSERVATION NOTES
33 pages
Strings Progeams
PDF
No ratings yet
Strings Progeams
7 pages
Submitted by M.Damodhar
PDF
No ratings yet
Submitted by M.Damodhar
20 pages
AMES-Cloud: A Framework of Adaptive Mobile Video Streaming and Efficient Social Video Sharing in The Clouds
PDF
No ratings yet
AMES-Cloud: A Framework of Adaptive Mobile Video Streaming and Efficient Social Video Sharing in The Clouds
5 pages
JWT Week Wise Programs
PDF
No ratings yet
JWT Week Wise Programs
1 page
Image Compression
PDF
No ratings yet
Image Compression
1 page
Red Tact Ion
PDF
No ratings yet
Red Tact Ion
13 pages