Algorithms
Algorithms
1. Start.
2. Read the user's name as a string and store it in the variable 'a'.
5. Stop.
1. Start.
11. Stop.
1. Start
(a) If yes,
(b) If no,
8. Print sum
9. Print difference
11. Stop
1. Start.
9. Stop.
1. Start.
4. Post-increment 'number'.
5. Print "After pre increment: " followed by the value of 'number' after pre-increment.
6. Stop.
1. Start
5. Perform left shift by 1 and right shift by 1 operations on `a` and `b`.
7. End
1. Start.
3. b=a%100.
4. If `a<100`:
- else:
a. Print `b`.
5. End.
1. Start.
4. End.
1. Start.
2. Input two integers (`a` and `b`).
4.`a` = `a + b`.
`b` = `a - b`.
`a` = `a - b`.
6. End.
1.Start.
6. End.
1. Start.
4.End.
4. If discriminant < 0 :
5. If discriminant is non-negative:
6. End.
1. Start.
4. switch(o):
5. End.
1.Start.
5.End.
1. Start.
4. End loop.
5. End.
1. Start.
3. Initialize `sum` to 0.
- If `a` is divisible by `i` with remainder 0 (`a % i == 0`), print `i` as a factor and update `sum` using
sum=sum + i.
6. End.