Advertisement
dllbridge

Untitled

Jun 13th, 2024
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.90 KB | None | 0 0
  1.  
  2.  
  3. #include <stdio.h>
  4.  
  5.  
  6.  
  7. int    ikujlkjlkjlj;                               //  остаток от групп из 7 книг    
  8.  
  9. int foo(int, float );
  10.  
  11. ///////////////////////////////////////////
  12. int main()                               //  
  13. {
  14.    
  15.    
  16.    
  17.     printf("foo = %d\n", foo(100, 1.999) );
  18. }
  19.  
  20.  
  21.  
  22.  
  23. ///////////////////////////////////////////
  24. int foo(int n1, float f2)                //
  25. {
  26.    
  27. return n1 + f2;
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. /*
  42.  
  43. #include <stdio.h>
  44.  
  45.  
  46.  
  47. int     nx,
  48.         ng,
  49.         no;                              //  остаток от групп из 7 книг    
  50.  
  51.  
  52.  
  53. ///////////////////////////////////////////
  54. int main()                               //  
  55. {
  56.    
  57.    
  58.    
  59.     printf("Enter count of books: ");  scanf("%d", &nx);
  60.    
  61.     printf("nx = %d\n", nx);
  62.    
  63.     ng = nx / 7;   
  64.     no = nx % 7;
  65.  
  66.     printf("ng = %d\n", ng);
  67.     printf("no = %d\n", no);           
  68. }
  69.  
  70. */
  71.  
  72.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement