Airtel song in C

Discussion in 'Programming' started by sai_karthik, Jul 30, 2007.

Thread Status:
Not open for further replies.
  1. #1
    #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(); 
    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;
    getch();
    }
    Code (markup):

     
    sai_karthik, Jul 30, 2007 IP
Thread Status:
Not open for further replies.