English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Using modus ponens or modus tollens can anyone fill in the second second line for this:

a.If this is a while loop, then the body of the loop may never be executed.

2007-06-24 15:43:11 · 2 answers · asked by mike j 1 in Science & Mathematics Mathematics

Or sorry the last part was

:. The body of the loop may never be executed.

2007-06-24 16:04:45 · update #1

2 answers

"Modus ponens" is a straightforward syllogism, with the form:
If (A statement) then (B statement).
(B statement) is true, therefore
A statement is true.

"Modus tollens" is a syllogism where the second statement in the conditional (if-then) statement is false:
If (A statement) then (B statement).
(B statement) is false, therefore
A statement is false.

Your problem has only one statement (the conditional), so you cannot draw any conclusion. You can take two cases:

1) "This is a while loop", therfore "The body may never be executed" (MP)

2) "The body will be executed", therefore "This is not a while loop" (MT)

2007-06-24 16:00:23 · answer #1 · answered by Anonymous · 0 1

Modus ponens states that if we have the following truth:
If P, then Q
and we know that P is true, we must conclude that Q is also true.

So, the corollary to your statement goes like this:

a.
"If this is a while loop, then the body of the loop may never be executed."
b.
"This IS a while loop, therefore it is possible that the body of the loop may never be executed."

2007-06-24 15:53:38 · answer #2 · answered by lithiumdeuteride 7 · 0 1

fedest.com, questions and answers