Algorithms
- A sequential solution of any program that written in human language,called algorithm.
- Algorithm is first step of the solution process, after the analysis of problem, programmer write the algorithm of that problem.
- Example of Algorithms:
Q. Write a algorithem to find out number is odd or even?
Ans.
step 1 : start
step 2 : input number
step 3 : rem=number mod 2
step 4 : if rem=0 then
print "number even"
else
print "number odd"
endif
step 5 : stop
Flowchart
1. Graphical representation of any program is called flowchart.
2. There are some standard graphics that are used in flowchart as following:
| Figure: Start/Stop terminal box |
| Figure: Input/Output box |
| Figure: Process/Instruction box |
![]() |
| Figure: Lines or Arrows |
![]() |
| Figure: Decision box |
![]() |
| Figure: Connector box |
| Figure: Comment box |
![]() |
| Figure: Preparation box |
![]() |
| Figure: Separate box |
Q. Make a flowchart to input temperature, if temperature is less than 32 then print "below freezing" otherwise print "above freezing"?
Ans.
![]() |
| Figure: Flowchart example of C program |
Related programs:






ne mama
ReplyDeleteDraw a flowchart diagram to find the square of a number
ReplyDeleteYour required flowchart for square of a number at:
Deletehttp://cprogrammingcodes.blogspot.in/2012/10/square-number-program-and-flowchart.html
flowchart for finding out the armstrong number.....please
ReplyDelete@Darshan Chavre,
DeleteYour required flowchart for finding Armstrong number at:
http://www.cprogrammingcodes.blogspot.in/2012/10/flowchart-for-finding-armstrong-number.html
Write a C program to accept a number from user and print the sum of square. Also draw the flowchart of program.... please..
ReplyDeleteand also the algorithm...
Delete@Meray Ney
DeleteYour required sum of square C program, algorithm and flowchart at:
http://cprogrammingcodes.blogspot.in/2012/10/sum-of-square-program-algorithm-and.html
Algorithm step for pyramid of numbers
ReplyDeleteAlgorithm steps and flowchart for the stars given.
ReplyDelete*
* *
* * *
* * * *
* * * * *
Algorithm and program for above star pyramid at:
Deletehttp://cprogrammingcodes.blogspot.in/2012/10/algorithm-for-star-pyramid.html
I want to write an algorithm for a c program of structures and its flowchart. How can de they done?
ReplyDeleteques===> draw a flowchart which would display the summation of the following series up to nth terms, n being accepted by the user.
ReplyDelete2+5+6+7+10+9+........nth term
flowchart for sum of 3 digits of 3 digit number
ReplyDeleteThis comment has been removed by the author.
ReplyDeletewrite a c program that takes electricity unit as input and print the total amount of bill..bill criteria 1-100 and price is 5.801,bill 101-200 and price 8.923,bill 201 and price 11.293,bill 201-300 and price 11.293,bill above 300 and price 74.561....please
ReplyDeleteeg of flowchart for array, string and recursive functions...
ReplyDeletewrite an algorithm for the sum of individual digits of a positive integer and draw aflowchart
ReplyDeleteme too, i need an example of .. a flowchart that has a string variable ..
ReplyDeletethanks :)
show the flowchart and algorithm of finding the upper triangle of metrics
ReplyDeletecan u tell me about how to find the biggest number among the 2 numbers in a flowchart and algorithm
ReplyDeletewrite algorithm and flowchart to generate all prime no.s between 1 and n where n is supplied by users
ReplyDeleteplease visit this site and get more information about TECHNOLOGY
ReplyDeletewww.lbefit.blogspot.com
algorithm, programme n flow chart for finding out no. of vowels in a string.
ReplyDeletealgorithm programme n flow chart for finding out no. of vowels in a string.
ReplyDeleteflowchart to print student grade using structure
ReplyDeleteflowchart to print the student grade using structure...........pls
ReplyDeleteHOW CAN I WRITE FACTORIAL OF A NUMBER IN THIS FORM
ReplyDelete5!=5X4X3X2X1=120 ?
Where can I find flowchart for the program that involves swapping two no.s and displaying them on screen???
ReplyDeleteASAP Please!!!
Where can I find flowchart for the program that involves swapping two no.s and then displaying them on screen???
ReplyDeleteASAP Please!!!
draw the flow chart of the program that input 4 digit number and show its output as reverse for example 1234 shows 4321
ReplyDeleteHello sir,
ReplyDeleteCan you help me in making a flow chart and algorithm of a program to find "Hartmann's Constant" using arc spectrum of brass and copper.Please.... this is for my project , for Bsc physics.
Hello , where can i get the algorithms for :-
ReplyDeleteSparse matrix
Insert and delete an element in an array , Stack , queue , Linked list
Bubble sort
Selection sort
Binary tree
can anyone help me to write an algorithm for permutations of a given set of series
ReplyDelete