Skip to content

Conversation

V1337Q
Copy link
Contributor

@V1337Q V1337Q commented Oct 12, 2025

Deskripsi (Description)

Menambahkan program sederhana untuk mengecek apakah suatu input angka merupakan bilangan pronic.

Checklist:

Umum:
  • [ x] Saya menambah algoritma terbaru.
Contributor Requirements (Syarat Kontributor) dan Lain-Lain:
  • [x ] Saya sudah membaca (I have read) CONTRIBUTING dan sudah menyetujui semua syarat.
  • [ x] Saya telah menambahkan komentar kode yang memberikan penjelasan maksud dari kode yang saya buat.
  • [ x] Saya menggunakan bahasa Indonesia untuk memberikan penjelasan dari kode yang saya buat.

Environment

Saya menggunakan (I'm using):

  • OS = Linux
  • g++ = 15.2.1

Link Issues

Issues : #

@V1337Q V1337Q requested a review from slowy07 as a code owner October 12, 2025 15:53
@mergify mergify bot added the cpp file label Oct 12, 2025
@V1337Q
Copy link
Contributor Author

V1337Q commented Oct 12, 2025

@slowy07

Comment on lines 36 to 52
int main() {
while (true) { //Supaya tidak harus menjalankan kode setiap mau mengetes angka baru.
int n;
std::cout << "Masukkan sebuah angka: ";
std::cin >> n;

// Perform fungsi adalah_pronic() dengan mengambil input n yang sudah dimasukkan user sebagai parameter dan menampilkan output
if (adalah_pronic(n)) {
std::cout << n << " Merupakan bilangan pronic." << "\n";
} else {
std::cout << n << " Bukan merupakan bilangan pronic." << "\n";
}
}


return 0;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format dengan clang-format

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oke ngab sek

Co-authored-by: arfy slowy <[email protected]>
Copy link
Contributor Author

@V1337Q V1337Q left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Menerima suggestion

Copy link
Contributor Author

@V1337Q V1337Q left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format kode dengan clang-format

Copy link
Member

@slowy07 slowy07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, terima kasih atas kontribusinya @V1337Q

@mergify mergify bot merged commit d481eb7 into bellshade:main Oct 13, 2025
4 of 8 checks passed
Copy link

mergify bot commented Oct 13, 2025

terima kasih atas kontribusinya @V1337Q!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants