🔒 Closed Guys pa help about Algoritm

Status
Not open for further replies.
step by step process yan lods kunware jan sa odd/even.
1. start
2. input number
3. check if number %2 == 0
print even
else
print odd
4. break / stop

ganyan
 
1. Create an algorithm that will check if a number is ODD or EVEN.
Display ODD if the number is odd, EVEN otherwise
Algorithm:
1. Set N be a number;
2. Let N be divided by 2, then Q be the Quotient and R be the Remainder;
3. If R = 0, then N is Even; If R = 1, N is Odd
 
Marami na nakagawa niyan lods. Search ka lang hehe. Salamat pa rin sa mga masisipag na nagcocomment. I recommend the app Aiuto for these kind of problems
 
Seryoso lods, no bashing. Sa mga ganyang problem ka lalago sa programming habang nag-uumpisa. Focus lang, kaya mo yan ng sarili mo lang most of the time, basic pa lang yan. I suggest you try na i solve muna yan ng sarilinan for 15 minutes, kapag nastuck ka, tsaka ka magsearch.
 
Status
Not open for further replies.

About this Thread

  • 8
    Replies
  • 214
    Views
  • 5
    Participants
Last reply from:
NOLIFE_

Trending Topics

Online now

Members online
1,020
Guests online
895
Total visitors
1,915

Forum statistics

Threads
2,276,230
Posts
28,968,483
Members
1,231,174
Latest member
jpryno
Back
Top