PropellerAds
Showing posts with label flowchart. Show all posts

Draw A Flowchart and Algorithm to find the Factorial of A number

No comments :

Draw A Flowchart and Algorithm to find the Factorial of A number

we will draw Flowchart and Algorithm to find  the factorial of number .

DECLARATIONS- 
  • fact=factorial
  • num= number that we  accept from user as input.
  • (fact*=n
  • n++) formula to find factorial

Algorithm

Step 1:Start
Step 2:Declare variables n=1,fact=1,num
Step 3:Read variables num
Step 4: fact*=n , n++
Step 5: If n<num
Step 6:Display fact
Step 7:Stop


Flowchart

How to draw a flowchart & Algorithm to display odd and even number in c language

No comments :

How to draw a flowchart to  display odd and even number in c language





Note- there was a mistake in above Image (N%2=0)

Algorithm to show odd and even number in C language

step 1: start
Step 2:declare variables N
Step 3:read variables 
Step 4:if N%2=0
Step 5:display N is even number
Step 6:if N%2!=0
Step 6:dispaly N is odd
Step 7: stop

How to draw a flowchart to display positive or negative number in c

No comments :

How to draw a flowchart to display odd or even number in c





































Algorithm
step1: start
step2: Declare variables N
Step3: read variables N
step4:if N>0
step5: display N is positive
step6: else
step7: display N is negative
step8:stop