Skip to content

Instantly share code, notes, and snippets.

@gokhanyavas
Created March 28, 2013 21:31
Show Gist options
  • Save gokhanyavas/5266988 to your computer and use it in GitHub Desktop.
Save gokhanyavas/5266988 to your computer and use it in GitHub Desktop.
Yarı çapı dışardan girilen bir dairenin çevresini ve alanını bulan c programı.
// yarı çapı dışardan girilen bir dairenin çevresini ve alanını bulan program.
#include <stdio.h>
#include <conio.h>
#define pi 3.14
int main()
{
//float p = 3.14;
float r , cevre, alan ;
printf("Yaricapi girin :");
scanf("%f", &r);
cevre=2*pi*r;
alan=pi*r*r;
printf ("Cevre olcusu : %f Alan olcusu : %f \n" , cevre, alan );
getch();
// ekranın kapanmasını engelliyor..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment