Like Jim said,
%d is used with integers. Use
%f in the final two printf statements, since cir and area are of the type float.
Let's talk about pi now. First of all, 3.14 is not an integer. It is a float, like cir and area. Second of all, it's a constant. You don't need to set aside 4 bytes at run-time for a value that doesn't change. It would be more efficient to use
at the top of your source file, before main() and after your #includes. This tells the compiler to replace every instance of "PI" with "3.14" before it compiles your code. Or you could use
Code:
const float pi = 3.14;
which essentially does the same thing. Note the "const" identifier.
EDIT: To print a float to only two decimal places, use
%.2f instead of
%f for your printf statements.