locked
AIRTEL SONG IN C LANGUAGE RRS feed

  • Question


  • #include<dos.h>
    #include<stdio.h>
    float main(void)
    {
    float A,Bb,D,G,F;
    A = 440;
    G = 780;
    Bb = 461;
    D = 586;
    F = 687;
    sound(G);
    delay(500);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(G);
    delay(500);
    nosound();
    sound(2*D);
    delay(500);
    nosound();
    sound(2*A);
    delay(250);
    nosound();
    sound(2*Bb);
    delay(250);
    nosound();
    sound(2*A);
    delay(250);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(F);
    delay(500);
    nosound();
    sound(2*A);
    delay(500);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(2*A);
    delay(250);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(F);
    delay(250);
    sound(G);
    delay(250);
    sound(2*A);
    delay(250);
    sound(2*Bb);
    delay(500);
    sound(2*A);
    delay(500);
    sound(G);
    delay(250);
    sound(F);
    delay(250);
    sound(D);
    delay(500);
    nosound();
    //end 1
    sound(G);
    delay(500);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(G);
    delay(500);
    nosound();
    sound(2*D);
    delay(500);
    nosound();
    sound(2*A);
    delay(250);
    nosound();
    sound(2*Bb);
    delay(250);
    nosound();
    sound(2*A);
    delay(250);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(F);
    delay(500);
    nosound();
    sound(2*A);
    delay(500);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(2*A);
    delay(250);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(F);
    delay(250);
    sound(G);
    delay(250);
    sound(2*A);
    delay(250);
    sound(2*Bb);
    delay(500);
    sound(2*A);
    delay(500);
    sound(G);
    delay(250);
    sound(F);
    delay(250);
    sound(D);
    delay(500);
    nosound();
    //end 2
    sound(2*A);
    delay(250);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(F);
    delay(250);
    sound(G);
    delay(250);
    sound(2*A);
    delay(250);
    sound(2*Bb);
    delay(500);
    sound(2*A);
    delay(500);
    sound(G);
    delay(250);
    sound(F);
    delay(250);
    sound(D);
    delay(500);
    nosound();
    //end 3
    sound(2*A);
    delay(250);
    nosound();
    sound(G);
    delay(250);
    nosound();
    sound(F);
    delay(250);
    sound(G);
    delay(250);
    sound(2*A);
    delay(250);
    sound(2*Bb);
    delay(500);
    sound(2*A);
    delay(500);
    sound(G);
    delay(250);
    sound(F);
    delay(250);
    sound(D);
    delay(500);
    nosound();
    return 0;
    }

    Thursday, October 4, 2007 12:47 PM

All replies

  • Superb i must say well done

    u can pat ur back

    Friday, October 5, 2007 8:27 AM
  •  

    Does it work..when this program is executed??...just wanted to know..
    Friday, October 5, 2007 8:39 AM
  • yeah well man.. Good try.. Who did this first ?
    Friday, October 5, 2007 8:48 AM

  • hi ya very good keep it up by the way tel me whether u have done own r u have copied...
    Saturday, October 6, 2007 8:29 AM

  • where these fn defined..
    sound()
    nosound()
    delay()



    it not working for me..linking error...
    Saturday, October 6, 2007 11:43 AM
  • Excellent job done !!!           Keep it up

     

    Saturday, October 6, 2007 12:44 PM
  • Excellent job yar

     

    Next hoping for the nokia tunes

     

    U rocks

     

    Thursday, October 11, 2007 10:52 AM
  • this program is not working dude
    Sunday, July 18, 2010 6:58 PM
  • Its not working for me too. Please let me know if any updates fixing this..
    Wednesday, August 30, 2017 3:47 PM