Documente Academic
Documente Profesional
Documente Cultură
An algorithm is a step by step procedure to solve a given problem in finite number of steps by
Example: Write an algorithm to add 2 numbers entered by user. Step 1: Start Step 2: Declare
variables num1, num2 & sum. Step 3: Read values of num1 and num2. Step 4: Add num1 &
num2 and assign the result to sum. sum
programming language
or
failed
based on the marks. 1) read marks 2) if student's marks is greater than or equal to 35 print
"passed" else print "failed" endif