#include<iostream.h>
#include<conio.h>
#include<rishabh.h>
#include<dos.h>
void main()
{
clrscr();
//											  float arr[]={130.81,146.83,164.81,174.61,196.00,220.00,246.94,261.63};
//                                                                                                                       c3      d3     e3      f3    g3     a3     b3    c4
float hapbirt[]={130.81,0,130.81,146.83,130.83,174.61,164.81,1,130.81,0,130.81,146.83,130.83,196.00,174.61,1,130.81,261.63,220.00,174.61,164.81,146.83,1,220.00,0,220.00,196.00,174.61,196.00,174.61,1};
for(int j=0;j<2;j++)
{
if(j==0)
strdis("  happy birthday\n");
else
strdis("may god bless you");
for(int i=0;i<31;i++)
{
sound(hapbirt[i]);
if(hapbirt[i]==0)
delay(50);
else if(hapbirt[i]==1)
delay(100);
else
{
if(i!=30)
delay(400);
if(i==30)
delay(2000);
}
nosound();
}
delay(200);
}
/*delay(100);
for(i=7;i>=0;i--)
{
sound(arr[i]);
delay(400);
nosound();
} */
getch();
}
