The lecture video is about algorithms. What is an algorithm? "The term algorithm refers to the logic of the program". further Characteristics of Programming Advantages of algorithms disadvantages of algorithms are discussed
Examples are discussed within the lecture.
Example #1 Write an algorithm that add two numbers by the user? Step 1: Start Step 2: Declare variables num1,num2 and sum. Step 3: Read the values of num1,num2 and sum. Step 4: Add num1 and num2 and assign it to sum. Step 5: Sum = num1+num2. Step 6: Print sum. Step 7: Stop.
Example # 2 Write an algorithm to check the greatest of 10 numbers? Step 1: Start Step 2: Declare variables a and b. Step 3: Read the values of a and b. Step 4: If a greater than b Step 5: Print a is greatest. Step 6: Else Step 7: Print b is greatest. Step 8: Stop.
The channel is also available on Youtube https://www.youtube.com/channel/UCI8PfOyRF0-PmaHjQg1Rzzg
Be the first to comment