Advertisement
dllbridge

Untitled

Sep 4th, 2024
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.11 KB | None | 0 0
  1.  
  2.  
  3. #include<stdio.h>
  4.  
  5.  
  6.  
  7. struct RR
  8. {
  9.        
  10.     float f;
  11.     int   n;      
  12.        
  13. }R3, R4;
  14.  
  15.  
  16. int n1;
  17.  
  18. RR  R1, R2, R[12];
  19.  
  20.  
  21. ///////////////////////////////////////////////
  22. int main()
  23. {
  24.    
  25.     R4.f = 4.12;
  26.     R4.n =  117;    
  27.    
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. /*
  59.  
  60.  
  61. #include<stdio.h>
  62.  
  63. int n = 100;
  64.  
  65.  
  66. ///////////////////////////////////////////////
  67. int main()
  68. {
  69.    
  70.    
  71.     printf("%d\n", n%7);  //  switch
  72.     printf("%d",   n/7);  // Кол-во групп  * 5845
  73.    
  74. }
  75.  
  76.  
  77.  
  78. */
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104. /*
  105. #include<stdio.h>
  106. //#include<iostream>
  107. //using namespace std;
  108. void def (float *nArr_1);
  109.  
  110.  
  111.  
  112. ///////////////////////////////////////////////
  113. int main()
  114. {
  115.    
  116.     float nArr_1[10] = {1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9};
  117.  
  118.     def(nArr_1);
  119.    
  120. return 0;
  121. }
  122.  
  123. /////////////////////////////////////////////////////////////////////
  124. void def (float *nArr_1)
  125. {
  126.  
  127.     for (int i=0; i<10; i++)
  128.     {
  129.         printf("%.1f\n", nArr_1[i]);
  130.     }
  131.         printf("%.1f\n", nArr_1[4]);
  132.  
  133.  
  134. }
  135.  
  136. */
  137.  
  138.  
  139.  
  140.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement