My issue
sol.c: In function ‘main’:
sol.c:8:8: error: ‘area’ undeclared (first use in this function)
8 | area = pi * radius * radius;
| ^~~~
sol.c:8:8: note: each undeclared identifier is reported
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(" Area of the given Circle isπ×r२", area);
}
Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC05/problems/RCPITCP31