🔒 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
  • 638
    Views
  • 2
    Participants
Last reply from:
Exine

Trending Topics

Online now

Members online
976
Guests online
6,325
Total visitors
7,301

Forum statistics

Threads
2,354,391
Posts
29,383,483
Members
1,079,440
Latest member
Rubykesha
Back
Top