Quantcast
Channel: Questions in topic: "declare"
Viewing all articles
Browse latest Browse all 78

How can I declare a variable as the 100% of another variable?

$
0
0
How can I declare a variable as the 100% of another variable? Example: var amount : int = 30; var percent : int = 100; Percent variable must be the same as the amount variable. Example: percent = percent / 2; (30:2=15, so percent must be 15 now)

Viewing all articles
Browse latest Browse all 78

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>