answersLogoWhite

0

int inumsquared = 2 ** 4; // The correct way

or

int inumsquared = 2 * 2 * 2 * 2 // Kind of OK way

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the answer in 4 raise to power 3 x 2 raise to power 4 x 7 by 4 x 2 raise to power 2 x 7 raise to power 2?

43 * 24 * 7 * 4 * 22 * 72 . 64 * 16 * 7 * 4 * 4 * 49 = 5619712


What 2 raise to the power of 2?

It is: 22 = 4


What is the answer of 4 raise to the power of 3 plus 4 raise to the power 2?

43 + 42 = 64 + 16 = 80


If you have -2 and you square it do you have 4 or -4?

(-2)2 = (-2)(-2) = 4 (when we raise a negative number to an even power, the result is always positive) (-2)3 = (-2)(-2)(-2) = -8 (when we raise a negative number to an odd power, the result is always negative) (-3)4 = 81 (-3)5 = -243


What is -2 raise to the power 2 root x where x is 4?

2 root 4 = 2 x 2; -2 to the power 4 is 16 (-2/4/-8/16)


Find the power of a positive integer in qbasic?

PROGRAMMING LANGUAGE: QBASIC/VERSION: QB64 ...Program code... intNum% = 2 CLS PRINT "PROGRAM: POWERS OF N/(N ="; intNum%; ")" PRINT FOR intEachLoopNum% = 0 TO 10 PRINT intNum%; " ^ "; intEachLoopNum%; " = "; intNum% ^ intEachLoopNum% NEXT ...Output... 2 ^ 0 = 1 2 ^ 1 = 2 2 ^ 2 = 4 2 ^ 3 = 8 2 ^ 4 = 16 2 ^ 5 = 32 2 ^ 6 = 64 2 ^ 7 = 128 2 ^ 8 = 256 2 ^ 9 = 512 2 ^ 10 = 1024 *NOTE*: In QBASIC the mathematical symbol: ^...means 'raise to the power of'; thus, 2 ^ 3; actually means raise the number 2 to the power of 3/or, 2 x 2 x 2.


Where do you find Milotic on Pokemon diamond?

1. Go to mt.cournet 2. Surf and the water until you find a wild feebas 3. Go to hearthome city 4. Make high level poffins that raise beauty 5. raise feebas 1 more lvl. Note:If feebas does not evolve then you did not raise beauty high enough 6. have fun with milotic! Enjoy!


What four areas does migration affect?

1. Population 2. Economics 3. Culture 4. Language


What is 4 square root of 10?

Answer: 4×4×4×4×4×4×4×4×4×4 =1048576 Answer: There is no "4 square root of 10". There is a square root (which number must I square - i.e., raise to the power 2 - to get 10?) and there is a 4th. root (which number must I raise to the 4th. power to get 10?).


By using four 4's find the answer 2?

4/4+4/4 = 2


How do you add a language in an iPad?

to add keyboard 1-settings 2-general 3-international 4-keyboards 5-select keyboard to change language (you cannot have more than 1 language) 1-settings 2-general 3-international 4-language 5-select language


What are the factors of ten to the fourth power?

Well, 10 = 2 x 5, so 10^4 = (2 x 5)^4 = (2^4) x (5^4). The carat[^] symbol means to raise to the power of.