226k views
5 votes
Does the following program represent an algorithm in the strict sense? Why or why not? Count=0 while count (count ! =5): count =count + 2

User Kapandron
by
8.2k points

1 Answer

1 vote
The answer is No. It doesn't program represent an algorithm in the strict sense. The process described will never terminate because the value of Count will never be 5. It doesn't not represent an algorithm and the process that has been described will never be terminate because the number will never be 5.
User Brian Leeming
by
7.4k points

No related questions found