🔒 Closed Need help po sa operator

Status
Not open for further replies.
Ang modulo operator o remainder operator ay nag re-return ng remainder, maaari mong gamitin 'yung remainder para malaman kung ang unang operand ba ay divisible ng pangalawang operand. Ang 1 % 2 ay mag re-return ng 1 kaya ito ay hindi divisible by 2, pero ang 4 % 2 ay mag re-return ng 0 kaya ito ay divisible by 2 or even. Gamitan mo ng if statements para ma-display mo ng maayos kung ito ay even o hindi.
 
Ang modulu operator o remainder operator ay nag re-return ng remainder, maaari mong gamitin 'yung remainder para malaman kung ang unang operand ba ay divisible ng pangalawang operand. Ang 1 % 2 ay mag re-return ng 1 kaya ito ay hindi divisible by 2, pero ang 4 % 2 ay mag re-return ng 0 kaya ito ay divisible by 2 or even. Gamitan mo ng if statements para ma-display mo ng maayos kung ito ay even o hindi.
Salamat po lods
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 633
    Views
  • 2
    Participants
Last reply from:
Exine

Trending Topics

Online now

Members online
1,090
Guests online
3,411
Total visitors
4,501

Forum statistics

Threads
2,332,548
Posts
29,266,088
Members
1,144,379
Latest member
JuanDelaCruz1234
Back
Top