Wednesday, 21 October 2015

PRACTICE WITH ALGORITHMS

  1. Write an algorithm for making a telephone call
  2. Write an algorithm for the average of 3 numbers
  3. Write an algorithm to find out the discriminant of a quadratic equation
  4. Write an algorithm for preparing a bill of sales
  5. Write an algorithm to find the sum of all natural numbers between 1 and n
  6. Write an algorithm to find the largest of 3 integers
  7. Write an algorithm to find simple interest
  8. Write an algorithm to find greatest of 2 numbers
  9. Write an algorithm to find the greatest of 3 numbers
  10. Write an algorithm to find the factorial of a number
  11. Write an algorithm to find the LCM of 2 numbers
  12. Write an algorithm to reverse a number
  13. Write an algorithm to find all integer divisors of a given number
  14. Given 3 numbers a, b, a the sides of a triangle. Check whether with the 3 sides given, it forms on Isosceles or equilateral Isosceles triangle


No comments:

Post a Comment