PropellerAds
Showing posts with label algorithm. 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