1002 - Area of a Circle


Problem Link


A solution in c

#include<stdio.h>
int main()
{
    double A,R,pi=3.14159;
    scanf("%lf",&R);
    A=pi*(R*R);
    printf("A=%.4lf\n",A);
    return 0;
}





No comments

Theme images by Jason Morrow. Powered by Blogger.