229,794pages on
this wiki
Add New Page
Discuss this page0 Share
Programa:       Ejercicio4.cpp
Fecha:          11/10/2007
Descripción:    Calcula el area de un rectángulo
#include <iostream>
using namespace std;
void main()
        float b,h,a;
        // Leemos el valor de la altura
        cout << "introduzca el valor de la altura ";
        cin >> h;
        // Leemos el valor de la base
        cout << "introduzca el valor de la base ";
        cin >> b;
        // Calculamos el area
        a = b * h;
        // Mostramos resultado
        cout << "El area es = " << a;

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.