Skip to content

Instantly share code, notes, and snippets.

@otaviocorrea
Last active May 24, 2020 21:57
Show Gist options
  • Save otaviocorrea/9b72ebe5ebafff31a9b87dbcf8bd3977 to your computer and use it in GitHub Desktop.
Save otaviocorrea/9b72ebe5ebafff31a9b87dbcf8bd3977 to your computer and use it in GitHub Desktop.
Teste de Beep em C
#include<stdio.h>
#include<conio.h>
#include<windows.h>
int main(){
while(1 != 0){
printf("pa");
Beep(528,300);
printf("ra");
Beep(528,300);
printf("bens");
Beep(594,500);
printf(" pra");
Beep(528,500);
printf(" vo");
Beep(704,400);
printf("ce\n");
Beep(660,1400);
printf("Nes");
Beep(528,200);
printf("ta");
Beep(528,200);
printf(" data");
Beep(594,600);
printf(" que");
Beep(528,600);
printf("ri");
Beep(792,400);
printf("da\n");
Beep(704,1400);
printf("Mui");
Beep(880,200);
printf("tas");
Beep(880,200);
printf(" fe");
Beep(1056,600);
printf("li");
Beep(880,400);
printf("ci");
Beep(704,400);
printf("da");
Beep(660,400);
printf("des\n");
Beep(594,1300);
printf("Muitos");
Beep(933,200);
printf(" a");
Beep(933,200);
printf("nos");
Beep(880,600);
printf(" de");
Beep(704,600);
printf(" vi");
Beep(792,600);
printf("da\n");
Beep(704,1600);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment