Fandom

Scratchpad

PLE:Unidad4Ejercicio19

224,191pages on
this wiki
Add New Page
Discuss this page0 Share
/*
Programa:       Unidad4Ejercicio19.cpp
Descripción:    Muestra una secuencia de caracteres aleatorios en pantalla.
*/
#include <iostream>
#include <cstdlib>
using namespace std;

void main ()
{
        unsigned int fil, col;
        char car;
        srand(time(NULL));

        for(fil = 0; fil < 25; fil++)
        {
                for(col = 0; col < 80; col++)
                {
                        car = rand() % 27 + 96;
                        cout << car;
                }
        }

        cin.ignore();
        cin.get();
}

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.