๐Ÿ”’ Closed Algorithm

Status
Not open for further replies.

maruko_066

Enthusiast
Medyo nagugulhan kase ako sa mga word na "if" "else" "then" sa algorithm, ano kayang definition ng mga yan, tsaka pano mo Itatranslate ung pseudocode na "and" "with" to algorithm?
 
tagalogin mo.

(if and else-if)
KUNG sarado ang pinto THEN kumatok ka.
PERO KUNG bukas and pinto THEN pumasok.

(if tao = 5, then give 5 ice cream,
else if tao > 5 OR tao < 5, then do not give anything)
KUNG may tao AT SAKA lima sila THEN bigyan mo sila ng limang ice cream
PERO KUNG mas mababa sa lima or mas mataas sa lima ang tao, wala kang ibibigay
 
tagalogin mo.

(if and else-if)
KUNG sarado ang pinto THEN kumatok ka.
PERO KUNG bukas and pinto THEN pumasok.

(if tao = 5, then give 5 ice cream,
else if tao > 5 OR tao < 5, then do not give anything)
KUNG may tao AT SAKA lima sila THEN bigyan mo sila ng limang ice cream
PERO KUNG mas mababa sa lima or mas mataas sa lima ang tao, wala kang ibibigay

ah ganun pala, ang kakaiba pala dito, eh ung mga pseudocode na binigay ng prof namin, puro base sa math problems like squareroot
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 562
    Views
  • 3
    Participants
Last reply from:
maruko_066

Online now

Members online
949
Guests online
1,132
Total visitors
2,081

Forum statistics

Threads
2,275,160
Posts
28,961,064
Members
1,232,644
Latest member
jhayz0023
Back
Top