67% found this document useful (3 votes)
25K views4 pages

Flowcharts for Math Calculations

The document contains flowcharts for calculating the greatest common divisor, factorial, binomial coefficient for Pascal's triangle, sine series, and exponentiation. Each flowchart shows the step-by-step process as a series of nodes connected by arrows to calculate the result through inputs, calculations, condition checks, and outputs.

Uploaded by

anilperfect
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
67% found this document useful (3 votes)
25K views4 pages

Flowcharts for Math Calculations

The document contains flowcharts for calculating the greatest common divisor, factorial, binomial coefficient for Pascal's triangle, sine series, and exponentiation. Each flowchart shows the step-by-step process as a series of nodes connected by arrows to calculate the result through inputs, calculations, condition checks, and outputs.

Uploaded by

anilperfect
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Flowchart for Greatest Common Divisor

Start

Input a, b num

Input

C= a mod b

Is c= 0?

NO a=b ,
b=c

Yes
Print c as resul t

Stop

Flowchart for calculating

cr

Start

Input n& r

nf= n-r

i=1;c=d=ei =1

No no

Is i<= n?

Is No i< =r ?

Is i<=n f?

Yes yes
c=c * i d=d* i e=e*i

yes

i=i+1

i=i+1

i=i+1

Stop

Print ans

ans= c/(d*e)

Flowchart

for Calculating Sinx series

Start

Input n,x

sin=0; sign=-1

j=1; term=x; i=1

Is i<=n ?

Print sin

Stop

No

Yes
sin=sin+ter m term=sign*term*x*x/ (j+2)*(j+1) J=j+2

Flowchart for Pascal Triangle


Start

Inpu t n

i=0
Yes

Is i<= n? j=0 Is j<= i? Calculate icj = fact(i)/fact(j)*fact(i-j)


Yes

No

No

Stop

Print i cj

j=j+1

i=i+1

You might also like