The Name Game: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 713: | Line 713: | ||
{0}! |
{0}! |
||
} |
} |
||
While not empty { |
|||
Read |
Read x$ |
||
x$= |
x$=ucase$(left$(x$,1))+lcase$(mid$(x$,2)) |
||
b$=if$(x$ ~ "B*"->"", "b") |
b$=if$(x$ ~ "B*"->"", "b") |
||
f$=if$(x$ ~ "F*"->"", "f") |
f$=if$(x$ ~ "F*"->"", "f") |
||
m$=if$(x$ ~ "M*"->"", "m") |
m$=if$(x$ ~ "M*"->"", "m") |
||
y$=if$(x$ ~ "[AEIOU]*"->lcase$(x$),Mid$(x$, 2)) |
y$=if$(x$ ~ "[AEIOU]*"->lcase$(x$),Mid$(x$, 2)) |
||
toprint$=format$(song$, |
toprint$=format$(song$, x$, y$, b$, f$, m$) |
||
doc$=toprint$ |
doc$=toprint$ |
||
report toprint$ |
report toprint$ |
||
Line 752: | Line 752: | ||
Felix! |
Felix! |
||
</pre > |
</pre > |
||
=={{header|Modula-2}}== |
=={{header|Modula-2}}== |