Guest User

Untitled

a guest
Oct 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.80 KB | None | 0 0
  1. 76 bottles of beer on the wall, 76 bottles of beer. Take one down and pass it around - 75 bottles of beer on the wall.
  2. 100-76 74-67 65 63 62 29 28 25 24 19 8 7 2
  3.  
  4. 75 bottles of beer on the wall, 75 bottles of beer. Nut ichmedibeikechee baccerda issy da - 74 bottles of beer on the wall.
  5. 75
  6.  
  7. 66 bottles of beer on the wall, 66 bottles of beer. Take one down - pass it around - 65 bottles of beer on the wall.
  8. 66
  9.  
  10. 64 bottles of beer on the wall, 64 bottles of beer. 63 bottles of beer on the wall.
  11. 64 51 45 34 14 4
  12.  
  13. 61 bottles of beer on the wall, 61 bottles of beer. If one of those bottles should happen to fall - 60 bottles of beer on the wall.
  14. 61-52 50-46 44-39 37-35 33-30 27 26 23-20 18-15 13-9 5 3
  15.  
  16. 38 bottles of beer on the wall, 38 bottles of beer. Are you still here?? - 37 bottles of beer on the wall.
  17. 38
  18.  
  19. 6 bottles of beer on the wall, 6 bottles of beer. Move along - There's nothing to see here - 5 bottles of beer on the wall.
  20. 6
  21.  
  22. 1 bottle of beer on the wall, 1 bottle of beer!!!! Take it down and pass it around - NO MORE bottles of beer on the wall!!"
  23. 1
  24.  
  25.  
  26. FILE *fp;
  27. int line4[50] = {64,51,45,34,14,4};
  28.  
  29. n=65
  30. i=65
  31.  
  32.  
  33. fp = fopen("fuck.txt","w");
  34. scanf("%d", &n);
  35. for(i=n; i>=1; i--) {
  36.     for(j=0; j<6; j++) {
  37.         if(line1[j] == i) {
  38.             printf("%d bottles of beer on the wall, %d bottles of beer. Take one down and pass it around - %d bottles of beer on the wall.",i,i,i-1);
  39.             fprintf(fp,"%d bottles of beer on the wall, %d bottles of beer. Take one down and pass it around - %d bottles of beer on the wall.",i,i,i-1);
  40.         }
  41.     }
  42.     for(j=0; j<30; j++) {
  43.         if(line2[j] == i) {
  44.            
  45.         }
  46.     }
  47.     for(j=0; j<30; j++) {
  48.         if(line3[j] == i) {
  49.            
  50.         }
  51.     }
  52.     for(j=0; j<30; j++) {
  53.         if(line4[j] == i) {
  54.            
  55.         }
  56.     }
  57.     for(j=0; j<30; j++) {
  58.         if(line5[j] == i) {
  59.            
  60.         }
  61.     }
  62. }
  63. fclose(fp);
  64. return 0;
Add Comment
Please, Sign In to add comment