0 votes
by (120 points)
How do you use powers in C++?

1 Answer

0 votes
by (1.4k points)
The C program below finds the area of a circle. In this program the value of \u03c0 is defined in two different ways. One is by using using the preprocessor directive '#define' to make 'PI' equal to 3.142857. The other uses the key work 'const' to define a double called 'pi' equal to 22.0/7.0.

Related questions

0 votes
1 answer
asked Nov 28, 2019 by arduino (3.7k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Aug 14, 2021 by defined (320 points)
0 votes
1 answer
asked Jul 24, 2021 by esp8266esp (120 points)
0 votes
1 answer
asked May 18, 2021 by nrf52832 (120 points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 31, 2021 by cobmean (120 points)
...