Home Forums C Programming invalid operands of types `float’ and `int’ to bin Reply To: invalid operands of types `float’ and `int’ to bin

#3261
S.Thananchayan
Participant
#include 
using namespace std;
int main()
{
    float pi = 3.14;
 int r;
    double area;
    cout << "Enter the radius: ";
    cin >> r;
    area =  r * r * pi;
    cout << "The area is "  << area << "n";
    return(0);
 
}