Fandom

Scratchpad

PLE:Unidad3Ejercicio03

215,933pages on
this wiki
Add New Page
Discuss this page0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

/*
Programa:       Ejercicio3.cpp
Fecha:          11/10/2007
Descripción:    Calcula el area de una circulo
*/
#include <iostream>
using namespace std;
void main()
{
        const float PI=3.1416;
        float r,a;
 
        // Leemos el valor del radio
        cout << "introduzca el valor del radio ";
        cin >> r;
        // Calculamos el area
        a = PI * (r * r);
        // Mostramos resultado
        cout << "El area es = " << a;
 
        cin.ignore();
        cin.get();
}

Also on Fandom

Random wikia