various problems using IF statement

PROBLEMS:

  1. Stacking algorithm to input 3 pieces of numbers denote the length of the side of a triangle. If the 3 sides of the triangle is equal in length will be printed the words "equilateral". If only two sides of the same will be printed "isosceles" and when the 3 side triangle is not the same as it will be printed "not both".

        
Hint: a) Using the operator AND (& &) / OR (| |)

        
Hint: b) Not allowed to use your logical AND and OR


        
ANSWERS here yaa!!


    
2. Stacking flowchart to enter 4 integers, then from

        
4 numbers is printed is the number of the largest.



        
ANSWERS here yaa!!



     3. Stacking flowchart for input integers 3 pieces and then print

        
The 3rd value is the order from small to large.

 

        
ANSWERS here yaa!!

0 comments

Posting Komentar