Last active
June 6, 2018 03:28
-
-
Save DarkJavaDeveloper/fe5fa87ddd819aeed2848dbb60ee8da0 to your computer and use it in GitHub Desktop.
Area de una circunferencia a partir del radio introducido c++
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
#include<stdio.h> | |
#include <iostream> | |
#include<stdlib.h> | |
#include<conio.h> | |
#include<math.h> | |
using namespace std; | |
int main () | |
{ | |
const float Pi=3.141592653589; | |
float radio, area, radio_cuad; | |
cout<<"Ingresa el radio de una circunferencia x para conocer su area"<<endl; | |
cin>>radio; | |
radio_cuad=pow(radio,2); | |
area=Pi*radio_cuad; | |
cout<<"su area es :"<<area; | |
system("pause>null"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment