Skip to content

feat: menambahkan program cek bilangan pronic#164

Merged
mergify[bot] merged 3 commits into
bellshade:mainfrom
V1337Q:feat/pronic
Oct 13, 2025
Merged

feat: menambahkan program cek bilangan pronic#164
mergify[bot] merged 3 commits into
bellshade:mainfrom
V1337Q:feat/pronic

Conversation

@V1337Q

@V1337Q V1337Q commented Oct 12, 2025

Copy link
Copy Markdown
Contributor

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 : #

Signed-off-by: V1337Q <SchweigendeEule@proton.me>
@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

V1337Q commented Oct 12, 2025

Copy link
Copy Markdown
Contributor Author

@slowy07

Comment thread math/pronic.cpp Outdated
Comment thread math/pronic.cpp
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
Copy Markdown
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
Copy Markdown
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 <slowy.arfy@proton.me>

@V1337Q V1337Q left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Menerima suggestion

@V1337Q V1337Q left a comment

Copy link
Copy Markdown
Contributor Author

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

@slowy07 slowy07 left a comment

Copy link
Copy Markdown
Member

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
@mergify

mergify Bot commented Oct 13, 2025

Copy link
Copy Markdown

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