Ask a Teacher



write an algorithm to check whether sum of two number is positive or negative?

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


comments powered by Disqus