I created a simple batch code to calculate a dose of medication. For a child of 8kg and a dose of 15mg/kg. I should get an amount of 5ml with this formula
amount = ((weight * dose) / 120) * 5
but im getting missing operant, echo is off
can someone please direct me?
here are my codes.
@echo off
title paracetamol dose calculator
color 5a
:loop
set /p weight of the child = weight
set /p dose of paracetamol = mgperkg
goto A
:A
set/a result=(%weight%*%dose%)/120)*5
echo %result%
pause
gotoloop