Posts

Showing posts with the label Pseudocode

Pseudocode To Check Which Number is Greater

Image
Pseudocode To Check Which Number is Greater 0.  Start 1.  Print "Please Enter the value of the First number" 2.  input ← num1 3.  Print "Please Enter the value of the Second number" 4.  input ← num2 5.  If num1 == to num2 6. Print "Both numbers are equal" 7.  Else If num1 > num 2 8. Print "The first number is greater" 9.  Else 10. Print "The second number is greater" 11. End

Pseudocode to Check, Number is Odd or Even

Image
Here's the complete Pseudocode to check number is even or odd. You can check from two methods whether the number is odd or even. Pseudocode to Check Whether Number is Odd or Even 1st Method: 0. Start 1. Print "Enter Any Number to Check, Even or Odd" 2. Read input of a number 3. If number mod = 0 4. Print "Number is Even" 5. Else 6. Print "Number is Odd" 7. End 2nd Method: 0. Start 1. Print "Enter Any Number to Check, Even or Odd" 2. Read input of a number 3. If number mod = 1 4.  Print "Number is Odd" 5. Else 6.  Print "Number is Even" 7. End Learn How to check even or odd in C language .