Fandom

Scratchpad

PLE:Unidad4Ejercicio25

219,566pages on
this wiki
Add New Page
Discuss this page0 Share
/*
Programa:       Unidad4Ejercicio25.cpp
Descripción:    Utiliza la entrada y salida estandar.
*/
#include <iostream>
#include <cstdlib>
#include <cstdio>
using namespace std;

void main ()
{
        char cad[20];
        int entero;
        float real;

        printf("Introduzca una cadena ");
        scanf("%s", cad);

        printf("Introduzca una numero entero ");
        scanf("%d", &entero);

        printf("Introduzca una numero real ");
        scanf("%f", &real);

        system("cls");
        printf("La cadena es = %s \n", cad);
        printf("El numero entero es = %d \n", entero);
        printf("El numero real es = %f \n", real);

        system("pause");
}

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.

Also on Fandom

Random wikia