My issue
I PUT RADIUS=8.9,PI=3.14 AND AREA=PI*RADIUS^2 AND I USE %f but i am getting answer 0
My code
#include <stdio.h>
int main(void) {
int radius=8.9, pi=3.14;
int area;
area=pi * radius * radius;
printf("The Area of the given circle is%f", area);
// your code goes here
}
Learning course: CSEIPFOIA: Programming and Problem Solving
Problem Link: Double datatype Practice Problem in CSEIPFOIA: Programming and Problem Solving - CodeChef