My issue
Write a program which does the following:
Find the area of a circle whose radius is 8.9. Take pi = 3.14
Declare variables radius, pi and area and assign the relevant values to them
Formula for area of a circle is Pi * radius * radius
My code
// Complete the code by updating the uderscores(__)
#include <stdio.h>
int main() {
double pi = 3.14;
double radius = 8.9;
area = pi * radius * radius;
printf("The Area of the given Circle is", area);
}
Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC05/problems/RCPITCP31