418Views1Replies

Author Options:

How to calculate the percentage using cmd? Answered

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

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
verence
verence

7 years ago

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