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 MUESTRA UNA CURVA

    Krlos
    Krlos
    Admin


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

    PROGRAMA QUE MUESTRA UNA CURVA Empty PROGRAMA QUE MUESTRA UNA CURVA

    Mensaje  Krlos Vie Mayo 20, 2011 4:50 pm

    /*
    PROGRAMA QUE MUESTRA UNA CURVA
    CARLOS E. LOPEZ
    */
    #include <winbgim.h>
    #include <stdlib.h>
    #include <math.h>
    int main()
    {
    int x;
    initwindow(640,480); //open a 640x480 graphics window
    for(x=0;x<20;x++)
    {
    putpixel(x,getmaxy()-pow(x,2),15);
    }
    system("pause");
    closegraph(); //close graphics window
    }

      Fecha y hora actual: Dom Mayo 19, 2024 5:53 am