Fandom

Scratchpad

PLE:Unidad3Ejercicio01

215,866pages 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:       Ejercicio1.cpp
Fecha:          10/10/2007
Descripción:    Programa conversión de tipos
*/
#include <iostream>
using namespace std;
void main()
{
         int a, rE;
         float b, rF;
         double c, rD;
 
         cout << "Introduzca un entero ";
         cin >> a;
 
         cout << "Introduzca un real simple ";
         cin >> b;
 
         cout << "Introduzca un real doble ";
         cin >> c;
 
         rE = a + b + c;
         rF = a + b + c;
         rD = a + b + c;
 
         cout << rE << " " << rF << " " << rD << " "; 
         cin.ignore();
         cin.get();
}

Also on Fandom

Random wikia