Fundamentals of Computer Programming - Old Questions

1. What is logical error? Write flowchart and program for checking whether the number entered by the user is exactly divisible by 5 or by 11. [1+5]

OR

What is algorithm? Write an algorithm to check given number is prime or composite. [1+5]

6 marks | Asked in 2070