- Beranda
- Komunitas
- Tech
- Programmer Forum
c++ : tolongin ane bitwise operator gan...


TS
vieoldiaorstab
c++ : tolongin ane bitwise operator gan...
ane baru belajar c++ gan pke ebook... nah ad soal kaya gini :
Write a program that reads an integer value from the keyboard into a variable of type int , and uses one of the bitwise operators (i.e. not the % operator!) to determine the positive remainder when divided by 8. For example, 29 = (3x8)+5 and 14 = ( 2x8)+2 have positive remainder 5 and 2, respectively, when divided by 8.
ane dah dpt jawabannya dari hasil ane nyari di google :
nah tapi ane masih bingung. kok bisa tw klo hrus di &7?? masa harus dicoba satu satu angkanya? ato ad caranya biar gampang nemuinnya? ane bingung gan...(maaf klo pertanyaan ane konyol gan, baru belajar bgt)
Write a program that reads an integer value from the keyboard into a variable of type int , and uses one of the bitwise operators (i.e. not the % operator!) to determine the positive remainder when divided by 8. For example, 29 = (3x8)+5 and 14 = ( 2x8)+2 have positive remainder 5 and 2, respectively, when divided by 8.
ane dah dpt jawabannya dari hasil ane nyari di google :
Spoiler for code:
nah tapi ane masih bingung. kok bisa tw klo hrus di &7?? masa harus dicoba satu satu angkanya? ato ad caranya biar gampang nemuinnya? ane bingung gan...(maaf klo pertanyaan ane konyol gan, baru belajar bgt)

0
687
1


Komentar yang asik ya
Urutan
Terbaru
Terlama


Komentar yang asik ya
Komunitas Pilihan