Program design
by Andi · 5 things on Twos
- Introduction
- Scratch and AppInventor
- Algorithms & Scratch
- Write an algorithm that reads three integers and checks if they can form a triangle. If so, determine whether it is an equilateral, isosceles, or scalene triangle
- Write an algorithm that simulates the following game: User A enters an integer, and User B will guess the entered number. Each time User B tries to guess the number entered by User A, the algorithm should provide one of the following responses:
i) Correct!
ii) The initial number is greater
iii) The initial number is smaller