Testing

Commit Exercise

exercise 1

  • write a program to calculate the quadratic equation formula
  • example :
    • input a : 2
    • input b : -3
    • input c : 1
    • output x1 : 1
    • output x2 : 0.5

exercise 2

  • write a program to raise any number to any power
  • example :
    • input number : 2
    • input power : 3
    • output : 8

exercise 3

  • write a program to determine the type of a triange given the size of the three sides
  • (output choice : Equilateral, Isosceles and Scalene)
  • example :
    • input side 1 : 4
    • input side 2 : 6
    • input side 3 : 4
    • output : isosceles

exercise 4

  • Write an algorithm to receive input number from user until user input = 9999.
  • The program will output the minimum number inputted
  • Example :
    • 3
    • 6
    • 2
    • 6
    • 9999
    • output : 2