Posted By:
7 Oct, 2013 1:04 am PDT

rain with blue color drops

c program that will dispalys rain drops as zig-zag with blue color and with slow motion ......

Attachment:None


#include<stdio.h>

#include<conio.h>

void main()

{

    int i;

    clrscr();

    for(i=1;i<25;i++)

    {

        gotoxy(1,i);

        textcolor(BLUE);

        cprintf("* * * * * * * *");

        gotoxy(3,i+2);

        textcolor(BLUE);

        cprintf("* * * * * * * *");

        gotoxy(2,i+1);

        textcolor(BLUE);

        cprintf("* * * * * * * *");

        gotoxy(4,i+1);

        textcolor(BLUE);

        cprintf("* * * * * * * *");

       

        delay(300);

        clrscr();

    }

    getch();

}

Attachment: RAIN_DRO.C

Was it useful?  




Please login to reply to this problem.