Buat Anak Tkj Pasti Berguna:v
Jadi Ini Itu coding buat bikin tools semacem nerjemahin gitu dari binery ke desimal
Tools ini dari program C++
/*
@author : 0xpl01t3r
*/
#include<iostream>
using namespace std;
int main()
{
long bin, dec = 0, rem, num, base = 1;
cout << "Enter the binary number(1s and 0s) : ";
cin >> num;
bin = num;
while (num > 0)
{
rem = num % 10;
dec = dec + rem * base;
base = base * 2;
num = num / 10;
}
cout << "The decimal equivalent of " << bin << " : " << dec << endl;
return 0;
}
Simpan ekstansi .cpp
Semoga Bermanfaat
Source:Sayid Lead Security Darknet
Jadi Ini Itu coding buat bikin tools semacem nerjemahin gitu dari binery ke desimal
Tools ini dari program C++
/*
@author : 0xpl01t3r
*/
#include<iostream>
using namespace std;
int main()
{
long bin, dec = 0, rem, num, base = 1;
cout << "Enter the binary number(1s and 0s) : ";
cin >> num;
bin = num;
while (num > 0)
{
rem = num % 10;
dec = dec + rem * base;
base = base * 2;
num = num / 10;
}
cout << "The decimal equivalent of " << bin << " : " << dec << endl;
return 0;
}
Simpan ekstansi .cpp
Semoga Bermanfaat
Source:Sayid Lead Security Darknet
0 Comments