+ 2
How to make squares of numbers entered in c++
formula????
6 Réponses
+ 15
might base will come in place of 1 @SD
+ 12
print num*num
or make use of
pow(num,2)
+ 5
you can use a recursive function and build your pow() function like...
int calculatePower(int base, int powerRaised)
{
if (powerRaised != 1)
return (base*calculatePower(base, powerRaised-1));
else
return 1;
}
+ 4
???@ga