Skip to content

Instantly share code, notes, and snippets.

@b-adams
Created September 21, 2011 16:29
Show Gist options
  • Save b-adams/1232551 to your computer and use it in GitHub Desktop.
Save b-adams/1232551 to your computer and use it in GitHub Desktop.
#include <stdio.h>
const float PI=3.14;
int main()
{
int r;
printf("Enter the radius:\n");
scanf("%d",&r);
printf("The area of your circle is about %d\n",PI*r*r);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment