create account

Sistema de Código Hamming en PHP by mauricioeb83

View this thread on: hive.blogpeakd.comecency.com
· @mauricioeb83 ·
$0.02
Sistema de Código Hamming en PHP
Sistema de Código Hamming en PHP

<center>![PHP.png](https://steemitimages.com/DQmNSJbxVNkyJ3T6KRTLdB1q1iosuE9NfpT8yXX1tY9qvja/PHP.png)</center>

<center>![Hamming.png](https://steemitimages.com/DQmdDPwfqgyUAsordKqCUgkFfEeJcchNWf5YCr8FcMfoiAk/Hamming.png)</center>

<center>![Hamming2.png](https://steemitimages.com/DQmQ42hz5uHgxZDpj5brTyxh1PvET6sEmqj2iQLiTxZ6Cxq/Hamming2.png)</center>

<b>CÓDIGO FUENTE PHP</b>

<?
$n3 = $_POST['n3'];
$n5 = $_POST['n5'];
$n6 = $_POST['n6'];
$n7 = $_POST['n7'];
$n9 = $_POST['n9'];
$n10 = $_POST['n10'];
$n11= $_POST['n11'];
$n12 = $_POST['n12'];
if ($n3==1){
$a3=1;
}else{
$a3="";
}
if ($n5==1){
$a5=1;
}else{
$a5="";
}
if ($n6==0){
$a6=0;
}else{
$a6="";
}
if ($n7==1){
$a7=1;
}else{
$a7="";
}
if ($n9==1){
$a9=1;
}else{
$a9="";
}
if ($n10==0){
$a10=0;
}else{
$a10="";
}
if ($n11==1){
$a11=1;
}else{
$a11="";
}
if ($n12==0){
$a12=0;
}else{
$a12="";
}
if ($n3==1){
$b3=1;
}else{
$b3="";
}
if ($n5==0){
$b5=0;
}else{
$b5="";
}
if ($n6==1){
$b6=1;
}else{
$b6="";
}
if ($n7==1){
$b7=1;
}else{
$b7="";
}
if ($n9==0){
$b9=0;
}else{
$b9="";
}
if ($n10==1){
$b10=1;
}else{
$b10="";
}
if ($n11==1){
$b11=1;
}else{
$b11="";
}
if ($n12==0){
$b12=0;
}else{
$b12="";
}
if ($n3==0){
$c3=0;
}else{
$c3="";
}
if ($n5==1){
$c5=1;
}else{
$c5="";
}
if ($n6==1){
$c6=1;
}else{
$c6="";
}
if ($n7==1){
$c7=1;
}else{
$c7="";
}
if ($n9==0){
$c9=0;
}else{
$c9="";
}
if ($n10==0){
$c10=0;
}else{
$c10="";
}
if ($n11==0){
$c11=0;
}else{
$c11="";
}
if ($n12==1){
$c12=0;
}else{
$c12="";
}
if ($n3==0){
$d3=0;
}else{
$d3="";
}
if ($n5==0){
$d5=0;
}else{
$d5="";
}
if ($n6==0){
$d6=0;
}else{
$d6="";
}
if ($n7==0){
$d7=0;
}else{
$d7="";
}
if ($n9==1){
$d9=1;
}else{
$d9="";
}
if ($n10==1){
$d10=1;
}else{
$d10="";
}
if ($n11==1){
$d11=1;
}else{
$d11="";
}
if ($n12==1){
$d12=1;
}else{
$d12="";
}
$a1 = $a3 + $a5 +$a6 +$a7+$a9+$a10+$a11+$a12 ;  
if (($a1 % 2) == 0){
$p1=0;
}else{
$p1=1;
}
$b2 = $b3+ $b5 +$b6 +$b7+$b9+$b10+$b11+$b12;
if (($b2 % 2) == 0){
$p2=0;
}else{
$p2=1;
}
$c4=$c3 + $c5 +$c6 +$c7+$c9+$c10+$c11+$c12 ;
if (($c4 % 2) == 0){
$p3=0;
}else{
$p3=1;
}
$d8= $d3 + $d5 +$d6 +$d7+$d9+$d10+$d11+$d12 ; 
if (($d8 % 2) == 0){
$p4=0;
}else{
$p4=1;
}
?>

Fuente
http://mauriciobobadilla.com/sistemas/hamming
👍  , ,
properties (23)
authormauricioeb83
permlinksistema-de-codigo-hamming-en-php
categoryprogramming
json_metadata{"tags":["programming","spanish","technology","tutorial"],"image":["https://steemitimages.com/DQmNSJbxVNkyJ3T6KRTLdB1q1iosuE9NfpT8yXX1tY9qvja/PHP.png","https://steemitimages.com/DQmdDPwfqgyUAsordKqCUgkFfEeJcchNWf5YCr8FcMfoiAk/Hamming.png","https://steemitimages.com/DQmQ42hz5uHgxZDpj5brTyxh1PvET6sEmqj2iQLiTxZ6Cxq/Hamming2.png"],"links":["http://mauriciobobadilla.com/sistemas/hamming"],"app":"steemit/0.1","format":"markdown"}
created2017-09-21 20:43:45
last_update2017-09-21 20:43:45
depth0
children0
last_payout2017-09-28 20:43:45
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.003 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,220
author_reputation5,180,124,995
root_title"Sistema de Código Hamming en PHP"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id15,557,514
net_rshares8,568,787,133
author_curate_reward""
vote details (3)