|
Mondatzáró írásjelek
Írjon programot, amely a standard bemenetről soronként egy legfeljebb 100 karakter hosszúságú
sztringet olvas be mindaddig, amíg egy olyan sztringet nem olvas, amelynek az utolsó három
karaktere három felkiáltójel (!!!)! A program írja a standard kimenetre azokat a sorokat,
amelyek pontra, kérdőjelre vagy felkiáltójelre végződnek, beleértve a bemenet végét jelző
sort is!
Példa bemenet
Addressed To HaydonHigh-mindedness, a jealousy for good,A loving-kindness for the great man's fame,Dwells here and there with people of no name,In noisome alley, and in pathless wood:And where we think the truth least understood,Oft may be found a "singleness of aim,"That ought to frighten into hooded shameA money-mongering, pitiable brood.How glorious this affection for the causeOf steadfast genius, toiling gallantly!What when a stout unbending champion awesEnvy and malice to their native sty?Unnumbered souls breathe out a still applause,Proud to behold him in his country's eye.John Keats!!!...!!!
letöltés szöveges állományként
A példa bemenethez tartozó kimenet
A money-mongering, pitiable brood.Of steadfast genius, toiling gallantly!Envy and malice to their native sty?Proud to behold him in his country's eye.!!!...!!!
letöltés szöveges állományként
|
|