calculate area of circle

Description:

Write a program to calculate area of circle. Test Case 1 Input (stdin) 56 Expected Output 9847.04 Test Case 2 Input (stdin) 36 Expected Output 4069.44

Program :


#include <iostream>

using namespace std;

int main()

{

int a;

  float area;

  cin>>a;

  area=3.14*a*a;

  cout<<area;

return 0;

}