function show() {
var perimetr_one = document.getElementById('perimetr_one').value;
var perimetr_two = document.getElementById('perimetr_two').value;
var perimetr_three = document.getElementById('perimetr_three').value;
var perimetr_four = document.getElementById('perimetr_four').value;
document.getElementById('perimetr').innerHTML = "Периметр равен: " + +perimetr_one + +perimetr_two + +perimetr_three + +perimetr_four;
}
<input type="number" id="perimetr_one" placeholder="Введите сторону 'a'" />
<input type="number" id="perimetr_two" placeholder="Введите сторону 'b'" />
<input type="number" id="perimetr_three" placeholder="Введите сторону 'c'" />
<input type="number" id="perimetr_four" placeholder="Введите сторону 'd'" />
<input type="button" value="Посчитать" id="show-perimetr" onclick="show()" />
<p id="perimetr"></p>
document.getElementById('perimetr').innerHTML = "Периметр равен: " + (+perimetr_one + +perimetr_two + +perimetr_three + +perimetr_four);
function show() {
var perimetr_one = parseFloat(document.getElementById('perimetr_one').value);
var perimetr_two = parseFloat(document.getElementById('perimetr_two').value);
var perimetr_three = parseFloat(document.getElementById('perimetr_three').value);
var perimetr_four = parseFloat(document.getElementById('perimetr_four').value);
var result = perimetr_one + perimetr_two + perimetr_three + perimetr_four;
document.getElementById('perimetr').innerHTML = "Периметр равен: " + result;
}