Ethiopian multiplication: Difference between revisions
Content added Content deleted
(→{{header|UNIX Shell}}: Add more shells.) |
(Improve GW-BASIC program) |
||
Line 936: | Line 936: | ||
=={{header|GW-BASIC}}== |
=={{header|GW-BASIC}}== |
||
⚫ | |||
{{incorrect|GW-BASIC|You are asked first to define three named functions...}} |
|||
20 DEF FNH(A)=INT(A/2) |
|||
⚫ | |||
30 DEF FND(A)=2*A |
|||
⚫ | |||
40 X=17:Y=34:TOT=0 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Haskell}}== |
=={{header|Haskell}}== |