bold text latex
#include <iostream>
#include <cmath>
int main() {
// Declare variables
double radius, area;
// Prompt user for input
std::cout << "Enter the radius of the circle: ";
std::cin >> radius;
// Calculate area using the formula A = π * r^2
area = M_PI * std::pow(radius, 2);
// Display the result
std::cout << "The area of the circle with radius " << radius << " is: " << area << std::endl;
// Exit program
return 0;
}