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
Algorithm and Flowchart
C language
Uploaded by
1arutra9
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 Algorithm and Flowchart For Later
Download
Save
Save Algorithm and Flowchart 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
Algorithm and Flowchart
C language
Uploaded by
1arutra9
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 Algorithm and Flowchart For Later
Carousel Previous
Carousel Next
Save
Save Algorithm and Flowchart 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
Q) Orite a C program to check if a numb Positive 1 Negedive or 2eru. Obyetive = Cc program to dina id the number is posite g Neyatve or zevo. I will provide she algori th n Gnd a flowchart fo help yuu tnd ev stand loyic Algorithms ) Start 2) Read a variable n 3) Check iJ n if @yals to O , then Print number is 2er0- 4) Else if nis greater then O, then Print number iS Positive - S) Else print number iS neg ative . 6) EndQxy Urite oe C programe to calculate Cum ot chigit 4 CeO: Objective + | C Programe to calculate the Sum 6 digit 4 a t= vill provide the algorithm and namber . Q Jlowchart fo help you understand the logic. Algorithm - \y Start Read a variable n 3) Set a variable Sum a> 0 4) while nis not eqral to OF 0 set a variable Kk o& n %o 10 set n= n /l0 set Sum = sum tk S) Ena of hile loop 6) Print Sum > EndEEE Plow chart = en 7.10 n= n/lo Sum = sum + k era ee A — & Print SumyANN TA Qy Unite a C Program to Jind sum of alf even numbers betvuem 1 to n, Lhere w will be taken on input Objective - C program to gind sum of aff even number § between 14 to n where n will be taken an input . Twill provide the algorithm and a Jlowchart to help you understand the logic Algorithm ty Start 2) Read a variable n 3) Set a variable sum oF 22” Co). infor et fo nian. Str G) leer) Check D iis complete ly divisi ble by 1, then Set Sum = Sum +4 Else 4° to step 4. S) Ena of dor logp. 6) Print Sum 7) EndFlos chart=Qry Write a C Program to enter a number and Prinb its reverse Using hile loop - Objective C program to enter G number and print reverse Gainy while luop . L will provide thé algorithm and a dlow chart to help You Understand the logic Algorithm + v) Start 2D Read variable n t a variable rev o> Zero: 3) of w bhle n 1S not eqpat to ©, do cy el its set a variable set n on n/lO set rev on rev * lotk S$) End while loop 6) Print vev D EndRevere 10 4 n=hA0 nev = ney¥ lotk,ee Oe Program +o input marks i oo physics , chemistry ; biology, on computers. Calculate percenta 4 Grade ae cording to +the illo, - Percentage >= 40% ; Grade A Percentage >= 9O% ar pale Percentage > = 7O Yo me Urede Percentage > = 60 % : Grade 1D Percentage > = Yo% : Grade E Percentage < wWov% : Grade F Quer sew Objectiv + C program to caladate percent ond print grade of il provide the algorithm and 5 subject marks. I wi tand the logic a Jlow chart 4o help you undersAlgorithm : L ') Start D Read Jive voriable p,c,m, b, co dor marky ej five subjects 3. ) Calcul ate the sum of the marks of subjects & YCalalate the percent of the nares drom the Sum Calelated and store it ih & voriable per: S) Check if per is eqpol fo or greater than 90, than Print grade A 6) Else if per is eqpal to or grecder than G0 , then Print grade B %) Else i} per is Cqpal t thar @o , then Part grade € %) Else id per is equal to or greater than 70 , then Print grade 0 is eyed to oF grecter than 410 and than GO and lend oO Or greeter than O and les than 60 ancl ler ay Else if per ke tan GO, thor Print grade fe toy Else Print grade F ") End s ae oe ee eeCen Es ONO AN VINFIaN Ie WUMberS Flow chart » arnge one Sf /Read p,c,m ) b, Co) rae 7 by is agnesiil zi s b + cu) * 100 /500 | \Set_ per = Cat+c+ m+ Ne ie 3/ Pt Grade af > . Grate” so seo perss 806k ~, True »/ Print per <40_ caer = y ak a, a int, Grede C/ m = Wo bh per
W. termi aa ERIE =. Fi ‘ spb f= nemainder * pemainder * jemaind er v I Ls nesult == original [Pret resbrcrg terete <= so aleQay (nite a C Program to ch number i$ ane number a S Objeckv . C program to check whether G humber is prime no. oF not. I will provide the algorithm Gnd flowchart bo make You Understahd the logic, Algorithm t) Start 2) Read a variable n 3)fon ie—-i bn step of 4 do 4) Checle iJ n is completely divisible by 4 Set a variable c a» © increne it byt. 3) Else ee Move to step 3 6) End o} Jor loop D Check if ¢ 1 equal to 2 Print Prime number. &) Else prime number Print not @ 9) Endfl law chart Print number is not Prime, > 8 ee, — v eh W Ty ue cee THe S/ Pant number is prme FaleQioy Lrite a C Programe to calaulate the Jactorial ¢) Qa number tring dor loop. Objective ~ Cc Program to calwate the dactorial o) a number Gaihg dor loop. I will provide the algorithm & Jlow chart to make you understand the lac. Algorithm S ) Start 2) Read variable n 3) Set a variable doc ant 4) fon ig—n tot ih decree of 1, do Calcul ate Jace foc vi S) End of Jor loop 6) Print Joc 2) EndFlowchart +
You might also like
C Language Notes-1
PDF
No ratings yet
C Language Notes-1
41 pages
Cds Lab Manual
PDF
No ratings yet
Cds Lab Manual
23 pages
c Program
PDF
No ratings yet
c Program
88 pages
23ES1113_PIC_LABORATORY_ALGORITHM_ALONE
PDF
No ratings yet
23ES1113_PIC_LABORATORY_ALGORITHM_ALONE
21 pages
Java - Programs List
PDF
No ratings yet
Java - Programs List
10 pages
Simple Menu Driven Calculator Program Using Switch Statement
PDF
No ratings yet
Simple Menu Driven Calculator Program Using Switch Statement
7 pages
Ds Lab Ece (Nithya) Finaldoc
PDF
No ratings yet
Ds Lab Ece (Nithya) Finaldoc
81 pages
Set 1: Simple C' Programs
PDF
No ratings yet
Set 1: Simple C' Programs
126 pages
Set 1: Simple C' Programs
PDF
No ratings yet
Set 1: Simple C' Programs
126 pages
VedantJain PracFile
PDF
No ratings yet
VedantJain PracFile
53 pages
MasterProgramming.in - BCA C Programing Assignment 2021
PDF
No ratings yet
MasterProgramming.in - BCA C Programing Assignment 2021
75 pages
CP - Assignment 3
PDF
No ratings yet
CP - Assignment 3
10 pages
Sapmple Algorithms & Flow Chart
PDF
83% (18)
Sapmple Algorithms & Flow Chart
20 pages
MasterProgramming - in - BCA C Programing Assignment 2021
PDF
No ratings yet
MasterProgramming - in - BCA C Programing Assignment 2021
79 pages
progran
PDF
No ratings yet
progran
15 pages
Experiment 2
PDF
No ratings yet
Experiment 2
15 pages
C- LAB Programs
PDF
No ratings yet
C- LAB Programs
64 pages
Grade 11 - CP 4 Introduction To Problem Solving
PDF
No ratings yet
Grade 11 - CP 4 Introduction To Problem Solving
10 pages
Programming Lab Assignment N4
PDF
No ratings yet
Programming Lab Assignment N4
13 pages
DOC-20241027-WA0015.
PDF
No ratings yet
DOC-20241027-WA0015.
21 pages
C Lab Manual NEW
PDF
No ratings yet
C Lab Manual NEW
54 pages
CPDS LAB (1) - Merged
PDF
No ratings yet
CPDS LAB (1) - Merged
58 pages
Coding Techiques Lab Manual
PDF
No ratings yet
Coding Techiques Lab Manual
62 pages
C Lab Manual 1
PDF
No ratings yet
C Lab Manual 1
54 pages
Module 2 - Complete
PDF
No ratings yet
Module 2 - Complete
10 pages
Assignment 02
PDF
No ratings yet
Assignment 02
21 pages
CP Lab NEW
PDF
No ratings yet
CP Lab NEW
44 pages
C Programming
PDF
No ratings yet
C Programming
28 pages
A Process or Set of Rules To Be Followed in Calculations or Other Problem-Solving Operations, Especially by A Computer
PDF
No ratings yet
A Process or Set of Rules To Be Followed in Calculations or Other Problem-Solving Operations, Especially by A Computer
19 pages
R20 Cplab Manual
PDF
No ratings yet
R20 Cplab Manual
141 pages
C Programming Notes
PDF
No ratings yet
C Programming Notes
145 pages
Clang Mat
PDF
No ratings yet
Clang Mat
72 pages
C Language
PDF
No ratings yet
C Language
25 pages
8261-C Programming Lab manual
PDF
No ratings yet
8261-C Programming Lab manual
55 pages
Lab Manual
PDF
No ratings yet
Lab Manual
47 pages
C Programming
PDF
100% (1)
C Programming
34 pages
Beginners C-Programs List: Since 1999
PDF
100% (2)
Beginners C-Programs List: Since 1999
135 pages
C Lab First 3 Exercise
PDF
No ratings yet
C Lab First 3 Exercise
15 pages
Internal Lab Exam Programs
PDF
No ratings yet
Internal Lab Exam Programs
21 pages
C Lab First 3 Exercise2
PDF
No ratings yet
C Lab First 3 Exercise2
16 pages
Algorithm and Programs
PDF
No ratings yet
Algorithm and Programs
25 pages
C Programmimg Lab
PDF
No ratings yet
C Programmimg Lab
62 pages
CO-102 FILE: BY:-Piyush Chouhan 2k19/a5/51
PDF
No ratings yet
CO-102 FILE: BY:-Piyush Chouhan 2k19/a5/51
96 pages
20uca519 Eswar - C
PDF
No ratings yet
20uca519 Eswar - C
82 pages
C Lab First 3 Exercise3
PDF
No ratings yet
C Lab First 3 Exercise3
16 pages
CS8261-C Programming Lab
PDF
0% (1)
CS8261-C Programming Lab
63 pages
C Lab Manual
PDF
No ratings yet
C Lab Manual
44 pages
CTSD Project 2
PDF
No ratings yet
CTSD Project 2
14 pages
DTU B.tech 1st Year CO LAB FILE
PDF
No ratings yet
DTU B.tech 1st Year CO LAB FILE
119 pages
C Programs
PDF
No ratings yet
C Programs
43 pages
PST Lab 2 Ragul Merged
PDF
No ratings yet
PST Lab 2 Ragul Merged
63 pages
Algorithms 1-20
PDF
No ratings yet
Algorithms 1-20
24 pages
Workshop 02
PDF
No ratings yet
Workshop 02
9 pages
Lab Assignment
PDF
No ratings yet
Lab Assignment
80 pages
Fods in C Lab Manual
PDF
No ratings yet
Fods in C Lab Manual
93 pages
C Lab Manual
PDF
No ratings yet
C Lab Manual
42 pages
CS3271 NEW C Programming Lab Manual
PDF
No ratings yet
CS3271 NEW C Programming Lab Manual
40 pages
C Lab Manual
PDF
No ratings yet
C Lab Manual
38 pages
Aim: Write A Program To Calculate Power of A Number: Practical No. 1
PDF
No ratings yet
Aim: Write A Program To Calculate Power of A Number: Practical No. 1
15 pages