**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:

Start/Stop terminal boxFigure: |

Input/Output boxFigure: |

Process/Instruction boxFigure: |

Lines or ArrowsFigure: |

Decision boxFigure: |

Connector boxFigure: |

Comment boxFigure: |

Preparation boxFigure: |

Separate boxFigure: |

Q. Make a flowchart to input temperature, if temperature is less than 32 then print "below freezing" otherwise print "above freezing"?

Ans.

Flowchart example of C programFigure: |

**Related programs:**- Flowchart for search prime number
- Factorial C program, Algorithm and Flowchart
- Flowchart for finding Armstrong number
- Rules for constructing an Algorithm
- if, if...else, nested if...else, if...else if - statement and flowchart
- Algorithm for rectangle number pattern
- Algorithm for star pyramid
- Draw a flowchart, and write algorithm and C program for calculate sum of square

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 ?

printf("5!=5x4x3x2x1=")

Deletefact=1;

Deletefor(i=1;i<=n;i++)

{

result=fact*i;

}

printf("%d",sum); //Hope you got

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

ReplyDeleteflowcharts:

ReplyDeleteinputs: month(in numbers) and day (birthday)

output will the zodiac sign!!

help please. thanks

CFan anyone make a algorithm to determine samllest number among the five...??

ReplyDelete

ReplyDeletepls help me to find the algorithm of lcm and hcf

ReplyDeleteplz make a algorithm to find first five even numbers

ReplyDeleteflowchart for palindrome checking

ReplyDeleteplz tell me sir k 3 digits main sy greater digits find krny k liy flowchart kesy bnny ga.plz flowchart bna k send kr dain plz

ReplyDeleteplz tell me

ReplyDeleteshow me flowchart sir

ReplyDeletepage k starting main diagram hain na ...

Delete.Write a c++ program to create a class reverse that will reverse a 4 digit number.and also write the concept,algorithm and flowchart.. ?plzz give me

ReplyDeletecan u plz tell me th logic and the flowchart to find the value that occurs atleast once in two matrices and printf its position in both matrices

ReplyDeletecan u plz tell me the flow chart and the logic to find the value that occurs atleast once in two matrices and print its position in both matrices.

ReplyDeletepls..help me finding a sample problem of flowchart that has already the solution of flowchart either sequential,repetition and conditional

ReplyDeletewhy are we first use flowchart?

ReplyDeleteIt helps to write code and to know the flow of codes too

DeletePrint Algoritm to find numbers(between 1 to 100) those r divisible bu 2 & not divisible by 3 &5.......

ReplyDeleteplease help me with this...write Algorithm to find the average of a set of five numbers

ReplyDeleteflowchart for simple structure in c,employee details using structure in c, student details using union in c

ReplyDeleteflowchart for simple structure in c,employee details using structure in c, student details using union in c

ReplyDeleteplease

ReplyDeletealgorithm for counting binary n.o and checkinging odd r even by n.o of 1s and 0s

ReplyDeleteThis comment has been removed by the author.

ReplyDeletecomment

ReplyDeletedefination of comment

ReplyDeletecan help for this program? it finds the sum of a series for a given value of X

ReplyDeletesum= 1- X^2/2! + X^4/4! - X^6/6! + X^8/8! - X^10/10!

sir...i want a program to print

ReplyDelete*******

**********

************

**************

#include

ReplyDelete#include

#include

void main()

{

int n=8,i,t=4,j;

clrscr();

for(i=0;i<t;i++)

{

for(j=0;j<n;j++)

{

printf("*");

}

printf("\n");

n=n+2;

}

getch();

}

flowchart for a scientific calculator

ReplyDeleteflowchart and algorithm to reverse a number and check if it is a palindrome

ReplyDeletewhere to write the following steps can you please help me sir

ReplyDeletealgorithm for checking whether number is a armstrong number or not

ReplyDeleteplease I want Answers for this question:

ReplyDeletewrite an algorithm and draw a flowchart to:

1- find largest between two numers.

2- determine if a number is positive or nevative.

3- determine if a number is odd or even.

I need Flowcharts and algorithms for all these

ReplyDelete1. Write a program to find simple & compound Interest.

2. Write a program to find the sum & average of three numbers.

3. Write a program to voter is eligible or not.

4. Write a program to find largest of three numbers.

5. Write a program to whether a given number is prime or not.

6. Write a program to find the roots of the quadratic equation using switch

statement.

7. Write a program to perform arithmetic operations of the two numbers using

switch statement.

8. Write a program to find the sum of the individual digit until a single digit.

9. Write a program to find frequency of presence of a digit in a given number.

10. Write a program to find count the number of vowels and consonants in a given

string.

11.Write a program to find the series 1+x+x2+x3+……+xn .

12.Write a program to find the series 1+1/3!+1/5!+……+1/n!.

13. Write a program to generate & print the Fibonacci series.

14. Write a program to find the exponent series.

15.Write a program to find the sine series.

16. Write a program to find the cosine series

17. Write a program to find a string whether it is palindrome or

not

18. Write a program to find a character is alphabetic or numeric or

special character.

19. Write a program to sort the number in ascending order

20. Write a program to find second largest & second smallest of

given number.

21. Write a program to find the sum & subtract of two given matrix.

22. Write a program to find the multiplication of two matrix.

23. Write a program to find the trace of a matrix.

24. Write a program to find the norm of a matrix.

25. Write a program to find sum of each row & sum of each

column of the given matrix.

please i want the answer.

ReplyDeletean old music cost Rs.20 and new music video cost Rs. 50. write the algorithm to purchase 5 numbers of old music video and 7 numbers of new music video through online purchase