🔒 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
  • 566
    Views
  • 3
    Participants
Last reply from:
maruko_066

Trending Topics

Online now

Members online
799
Guests online
1,200
Total visitors
1,999

Forum statistics

Threads
2,286,904
Posts
29,041,069
Members
1,217,234
Latest member
jordy0943
Back
Top