How to calculate the percentage using cmd?

heyyyyyyyyyy...how to calculate the percentage of two numbers using cmd?

verence3 years ago
set a=4
set b=8
set /A c=%a%*100/%b%
echo %a%, %b%, %c% %