бешенная сушка 28/28

var initialWeight = 6000; // Исходный вес в граммах
var targetWeight = 5000; // Желанный вес в граммах
var days = 0;

while (initialWeight > targetWeight) {
if(initialWeight <= targetWeight){
break
}
if (initialWeight > targetWeight) {
days ++;
initialWeight = initialWeight / 100 * 95 ;
}
}
console.log('дней ’ + days);
console.log(initialWeight);