Skip to content

Commit

Permalink
fix:using namespace std
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuf601 committed Oct 19, 2024
1 parent 4354a2e commit c9bb096
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions math/sigmoid.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include <iostream>
#include <cmath> // Untuk fungsi exp()
using namespace std;

/**
* @file sigmoid.cpp
* @brief Program ini menghitung fungsi sigmoid yang digunakan
Expand All @@ -23,12 +21,12 @@ double sigmoid(double x) {

int main() {
double x;
cout << "Masukkan angka: ";
cin >> x;
std::cout << "Masukkan angka: ";
std::cin >> x;

// Memanggil fungsi sigmoid dan menampilkan hasilnya
double result = sigmoid(x);
cout << "Hasil Sigmoid: " << result << endl;
std::cout << "Hasil Sigmoid: " << result << std::endl;

return 0;
}

0 comments on commit c9bb096

Please sign in to comment.