Help me in solving CLB026 problem

My issue

whats wrong in my code

My code

#include <stdio.h>

int main() {
    double pi=3.14;
    double a = 8.9;
	double area=(pi*a*a);
	printf("The Area of the given Circle is %d", area);
	return 0;
}


Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone

@ananyashinde24
For double data type u can’t use %d u have to use %f.

1 Like

but where is the double data? is it in the area formula?

The variable “area” is of the dataype double. To print a variable of double datatype you need to use the “%f” format specifier (“%lf” can be used too!).