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

Trending Topics

Online now

Members online
1,218
Guests online
3,417
Total visitors
4,635

Forum statistics

Threads
2,306,092
Posts
29,169,685
Members
1,194,646
Latest member
brendonnotz
Back
Top