Kurtbeyi
Misafir Editör
- Katılım
- 5 Şub 2022
- Mesajlar
- 1,980
- Tepkime puanı
- 0
- Puanları
- 36
- Konum
- istanbul
- Cinsiyet
-
- Bay
- Takım
- Fenerbahçe
Kod:
#include "stdafx.h"
#include <iostream>
#define PI 3.14
using namespace std;
double r,alan,cevre;
int _tmain(int argc, _TCHAR* argv[])
{
cout<<"Yaricap giriniz:"<<endl;
cin>>r;
alan=PI*r*r;
cevre=2*PI*r;
cout<<"Alan :"<<alan<<endl;
cout<<"Cevre:"<<cevre<<endl;
system("Pause");
return 0;
}
system("PAUSE");
return EXIT_SUCCESS;
}