Monday, October 7, 2013

ALGORITHM TO FIND WHETHER NUMBER IS POSITIVE, NEGATIVE OR ZERO (IS ELSE-IF ELSE STRUCTURE)

STEP 1.      Num <-- 0
STEP 2.      Read Num
STEP 3.      Is (Num > 0) Then
   Begin
         Print “Positive”
   End
Else if (Num<0) Then
   Begin
        Print “Negative”
   End
  Else
     Begin
        Print “Zero”
     End

11 comments:

  1. i want answer that the user inputs 10 numbers and find the total number of negative number, positive number and null value in an algorithm

    ReplyDelete
    Replies
    1. Yo, Big Shaq, the one and only
      Man's not hot, never hot
      Skrrat, skidi-kat-kat
      Boom
      Two plus two is four, minus one that's three, quick maths
      Everyday man's on the block, smoke trees
      See your girl in the park, that girl is a uckers
      When the ting went quack-quack-quack, you man were ducking (you man ducked)
      Hold tight, Asnee (my brotha), he's got the pumpy (big ting)
      Hold tight, my man (my guy), he's got the frisbee
      I trap, trap, trap on the phone, movin' that cornflakes
      Rice Krispies, hold tight my girl, Whitney (my G)
      On the road doin' ten toes, like my toes (like my toes)
      You man thought I froze, I see a peng girl, then I pose (chilin')
      If she ain't on it, I ghost, hah, look at your nose (check your nose fam)
      You donut, nose long like garden hose
      I tell…

      Delete
    2. What is this that is not write answer

      Delete
  2. Write an algorithm to check given integer number is positive,negative,zero

    ReplyDelete
  3. What is this that is not write answer

    ReplyDelete