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>yes: The quick brown fox jumps over lazy dogs.
}</lang>output
<pre>yes: The quick brown fox jumps over lazy dogs.
no : The five boxing wizards dump quickly.</lang>
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:
<lang>This is a sentence.
<pre>This is a sentence.
F
F
The five boxing wizards jumped quickly.
The five boxing wizards jumped quickly.
T</lang>
T</pre>
=={{header|Go}}==
=={{header|Go}}==
<lang go>package main
<lang go>package main
Line 993: Line 994:
Output:
Output:


<lang>
<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.
</lang>
</pre>


=={{header|Prolog}}==
=={{header|Prolog}}==
Line 1,017: Line 1,018:
</lang>
</lang>
output
output
<lang>?- pangram_example.
<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.</lang>
true.</pre>


=={{header|PureBasic}}==
=={{header|PureBasic}}==
Line 1,086: Line 1,087:


Sample output:
Sample output:
<lang>s1 <- "The quick brown fox jumps over the lazy dog"
<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!
</lang>
</pre>


=={{header|Retro}}==
=={{header|Retro}}==