+ 1

Plz what is the syntax for the square?

square syntax

18th May 2017, 9:23 PM
KESMO
KESMO - avatar
5 Respuestas
+ 12
If you want to calculate a^2, use pow(a,2). You'll need to include header file for this (I think cmath)
18th May 2017, 9:30 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 10
int n = 5; int n_squared = n*n;
18th May 2017, 9:34 PM
Karl T.
Karl T. - avatar
+ 4
tks to you all you helped me
18th May 2017, 9:36 PM
KESMO
KESMO - avatar