Wednesday, May 20, 2009

Try this in Turbo c

#include
#include
#include
#include
int c=261.5,cb=277,d=293,db=311,e=329,f=349.5,fb=370,g=392,gb=415,a=440,ab=446,b=497,x=0;
void stanzal()
{
sound(f);delay(450+x);nosound();delay(50+x);sound(f);delay(250+x);sound(e);
delay(250+x);
sound(d);delay(250+x);sound(e);delay(500+x);sound(cb);delay(250+x);
sound(d);delay(250+x);nosound();delay(250+x);sound(d);delay(1500+x);
}
void main()
{
while(kbhit()==0)
{
stanzal();
sound(a/2);delay(250+x);sound(b/2);delay(250+x);
sound(d);delay(500+x);sound(e);delay(250+x);sound(fb);
delay(500+x);sound(g);delay(250+x);sound(fb);delay(500+x);
sound(g);delay(250+x);sound(fb);delay(250+x);nosound();
delay(250+x);sound(fb);delay(250+x);sound(e);delay(250+x);
sound(g);delay(250+x);sound(fb);delay(250+x);sound(e);
delay(250+x);sound(d);delay(250+x);
stanzal();
sound(fb);delay(250+x);sound(g);delay(250+x);sound(a);
delay(250+x);nosound();delay(250+x);
sound(a);delay(200+x);nosound();delay(50+x);sound(a);
delay(500+x);sound(fb);delay(250+x);
sound(g);delay(250+x);sound(b);delay(250+x);sound(a);
delay(1500+x);
sound(fb);delay(250+x);sound(g);delay(250+x);sound(a);delay(250+x);
nosound();delay(250+x);sound(g);delay(250+x);
sound(g);delay(250+x);sound(f);delay(500+x);sound(e);
delay(250+x);
sound(d);delay(250+x);nosound();delay(250+x);sound(d);delay(250+x);
sound(cb);delay(250+x);
sound(d);delay(250+x);sound(cb);delay(250+x);sound(b/2);delay(250+x);
sound(a/2);delay(250+x);nosound();
}
getch();
}

1 comment:

  1. Jana Gana Mana Adhinayaka Jaya He !
    Bharata Bhagya Vidhata !
    Punjab Sindh Gujarat Maratha !
    Dravida Utkala Banga !
    Vindhya Himachala Yamuna Ganga !
    Ucchala Jaladhi Taranga !
    Tava Shubha Naame Jaage !
    Tava Shubha Aashisha Maage !
    Gaaye Tava Jaya Gaatha !
    Jana Gana Mangala Daayaka Jaya He !
    Bharata Bhagya Vidhaata !
    Jaya He ! Jaya He ! Jaya He !
    Jaya Jaya Jaya !
    Jaya He !

    ReplyDelete

LinkWithin

Related Posts with Thumbnails