I'm new in C programming and i have this assignment.
Prompts the user to enter the radius of the circle. A real number
is expected.
(b) Prints on the screen the circumference of the circle in the
following format:
“The circumference of a circle with radius x ft is equal to x.xx ft.”
(c) Prints on the screen the area of the circle in the following format:
“The area of a circle with radius x ft is equal to x.xx sq. ft.”
The results should be printed to a precision of 2 decimal digits.
This is my code so far. It comes out with 2 errors on the last two lines. If someone could help me resolve these and get the program running that would be great.Code:#include<stdio.h> void main() { int r; int pi=3.14; float cir,area; printf("/n enter the radius of the circle"); scanf("%d",&r); cir=2*pi*r; area=pi*r*r; printf("the circumference of the circle is%d", cir); printf("the area of the circle is%d", area); }