Assignment 2

due at 6pm on Thu 22 Sep

Write a C program that uses three variables named PI, area, and radius to compute and print the area of a circle of radius 5.2. The output should be something like the following, but of course, you should make the program do the computation rather than doing it yourself!

  The area of a circle with radius 5.20 is 84.90.

Submit your program by attaching just the .cpp file to an email message. Be sure to include your name and the assignment number in a comment in the C++ source.

©2011 Christopher League · some rights reserved · CC by-sa