U A C M

¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
U A C M

Universidad Autónoma de la Ciudad de México


    PROGRAMA QUE IMPRIMA LOS NUMEROS PARES ENTRE 0 Y 100 (AZAR #1)

    Krlos
    Krlos
    Admin


    Mensajes : 72
    Fecha de inscripción : 11/05/2011

    PROGRAMA QUE IMPRIMA LOS NUMEROS PARES ENTRE 0 Y 100 (AZAR #1) Empty PROGRAMA QUE IMPRIMA LOS NUMEROS PARES ENTRE 0 Y 100 (AZAR #1)

    Mensaje  Krlos Vie Mayo 20, 2011 4:25 pm

    /* PROGRAMA QUE IMPRIMA LOS NUMEROS PARES ENTRE 0 Y 100
    AUTOR: CARLOS E. LOPEZ */
    #include <conio.h>
    #include <time.h>
    #include <stdio.h>
    #include <stdlib.h>
    main()
    {
    int conta=0;
    int aleatorio=0;
    printf("\n\n\t\tPROGRAMA QUE IMPRIME 10 NUMEROS ALETORIOS\n\n\n");
    srand(time(0));
    for(conta=1;conta<=10;conta++)
    {
    aleatorio=rand();
    printf("%d\n",aleatorio);
    }
    printf("\n\n\t\t");
    system("PAUSE");
    return 0;
    }

      Fecha y hora actual: Dom Mayo 19, 2024 6:28 am