Square root and power functions (C++ programming tutorial)

preview_player
Показать описание
C++ Programming Tutorial: Square root and power functions

Please support my work:
Every dollar is seriously appreciated and enables me to continue making more tutorials
Рекомендации по теме
Комментарии
Автор

I use Xcode 3. If you are using the same program you can select "view > message bubbles > all issues" from the top menu and they will be displayed. If you are using a different program you should look through its view menu (or something similar) and try to find something about displaying messages.

EngineerFree
Автор

Thx a lot this was way easier than the other tutorials ive seen

toxicwall
Автор

Thanks a lot ur vid literally helped me

syedarimshakazmi
Автор

thx very helpful, never thought that it only required a new header

mrryanbond
Автор

But what if that number that you are square rooting is a variable, regardless if its an integer or not, and you want to continue to use the square rooted number with more addition before showing it on screen? I am trying to make a C++ program for finding the Surface Area of a Cone and I have to continue to use the number after it is square rooted. Any help?

veejj
Автор

How do you get the options to pop up after you double click the cmd (pow, sqrt, etc) with the open brackets "double"? I dont get open brackets when I type pow or sqrt.

MrComonroots
Автор

Thank you man it erally helped me in my work

murtazaiqbal
Автор

What text editor are you using? I'm just using the C++ software because I can't seem to run C++ on Brackets

potato
Автор

Can someone tell me what program he's using ?

xS
Автор

YouTube wont let me write proper code in the comments, so here is what you can write (minus the semicolons)

double x
cout << "Please enter a number: "
cin << x
cout << "The square root of " << x << " is " << sqrt(x) << endl

the output will be:

Please enter a number: 9
The square root of 9 is 3

EngineerFree
Автор

what is the difference between math.h and cmath? First year computer science student here.

jannahmae
Автор

I had no idea I had to include cmath. That's what was missing for me. First year computer science student here.

austinedeclan
Автор

(X^3/ sqrt x ^2 ) x+2 there was a question like this not exactly the same but how we can do it?

melissasumer
Автор

what IDE do you recommend for C++ coding on a mac? I am using Xcode but tbh it sucks :/

veritasthepotato
Автор

what if the base is negative and the power is 0.5???

bijansanchez
Автор

what if the input for square root is a negative number? I keep getting nan

icebergmike
Автор

I have got a problem, when I try to calculate a square root, if the result contains decimals, It shows me the closest number, and not the result with decimals

BONJABONJA
Автор

Hello mine is not doing square root for numbers which are declared in variables

sriharivaila
visit shbcf.ru