Created
March 28, 2013 21:31
-
-
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ı.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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