Fundamentals of Programming. Unit 4.
  1. Title.
  2. If statement.
  3. Adding else to the if statement.
  4. The syntax of an if...else if...else statement.
  5. Switch statement.
  6. Exercise 1: ECTS grading scale.
  7. Exercises 2&3: Write a C program...
  8. The continue and break statements.
  9. The concept pf functions in C.
  10. Locality of variables within a function.
  11. Example #1.
  12. Random numbers, rand().
  13. Generating random number in a range.
  14. Monte Carlo method.
  15. Recursivity of functions.
Last Updated 05 Oct, 2018. <vadimov@i.ua>