Pangram checker: Difference between revisions
Content added Content deleted
m (fix bare lang tags) |
|||
Line 290: | Line 290: | ||
return 0; |
return 0; |
||
}</lang>output |
}</lang>output |
||
<pre>yes: The quick brown fox jumps over lazy dogs. |
|||
no : The five boxing wizards dump quickly.</ |
no : The five boxing wizards dump quickly.</pre> |
||
=={{header|C sharp|C#}}== |
=={{header|C sharp|C#}}== |
||
Line 557: | Line 558: | ||
end program test</lang> |
end program test</lang> |
||
Output: |
Output: |
||
< |
<pre>This is a sentence. |
||
F |
F |
||
The five boxing wizards jumped quickly. |
The five boxing wizards jumped quickly. |
||
T</ |
T</pre> |
||
=={{header|Go}}== |
=={{header|Go}}== |
||
<lang go>package main |
<lang go>package main |
||
Line 993: | Line 994: | ||
Output: |
Output: |
||
< |
<pre> |
||
Please type a sentence |
Please type a sentence |
||
the quick brown fox jumps over the lazy dog |
the quick brown fox jumps over the lazy dog |
||
The sentence is a pangram. |
The sentence is a pangram. |
||
</ |
</pre> |
||
=={{header|Prolog}}== |
=={{header|Prolog}}== |
||
Line 1,017: | Line 1,018: | ||
</lang> |
</lang> |
||
output |
output |
||
< |
<pre>?- pangram_example. |
||
the quick brown fox jumps over the lazy dog --> ok |
the quick brown fox jumps over the lazy dog --> ok |
||
the quick brown fox jumped over the lazy dog --> ko |
the quick brown fox jumped over the lazy dog --> ko |
||
true.</ |
true.</pre> |
||
=={{header|PureBasic}}== |
=={{header|PureBasic}}== |
||
Line 1,086: | Line 1,087: | ||
Sample output: |
Sample output: |
||
< |
<pre>s1 <- "The quick brown fox jumps over the lazy dog" |
||
s2 <- "The quick brown fox jumps over the sluggish dog" |
s2 <- "The quick brown fox jumps over the sluggish dog" |
||
checkPangram(s1) |
checkPangram(s1) |
||
Line 1,092: | Line 1,093: | ||
checkPangram(s2) |
checkPangram(s2) |
||
"The quick brown fox jumps over the sluggish dog" is not a pangram! |
"The quick brown fox jumps over the sluggish dog" is not a pangram! |
||
</ |
</pre> |
||
=={{header|Retro}}== |
=={{header|Retro}}== |