Advertisement
dllbridge

Untitled

Oct 30th, 2023
904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.79 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6. #include   <stdio.h>
  7.  
  8. int n = 150;
  9.  
  10. ////////////////////////////////////////////////////   unsigned
  11. int main()                                        //
  12. {
  13.    
  14.     //for(int n = 150; ; )
  15.  
  16. Dima:      
  17.        printf("%3d) Columbia Pictures\n", n);
  18.        n -= 15;                                   // n = n - 15;
  19.    
  20.        if(n >= 0) goto Dima;
  21.        
  22.        
  23.        scanf("%d", &n);
  24.    
  25. }
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. /*
  40.  
  41. #include   <stdio.h>
  42.  
  43.  
  44.  
  45. ////////////////////////////////////////////////////   unsigned
  46. int main()                                        //
  47. {
  48.    
  49.     for(int n = 150; n >= 0; )
  50.     {
  51.        
  52.        printf("%3d) SONY Pictures\n", n);
  53.        n -= 15;                                   // n = n - 15;
  54.     }
  55.    
  56. }
  57.  
  58. */
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. /*
  83. #include   <stdio.h>
  84.  
  85. int n = 70;
  86.  
  87. ////////////////////////////////////////////////////   unsigned
  88. int main()                                        //
  89. {
  90.     do
  91.     {
  92.        
  93.        printf("%2d) SONY Pictures\n", n);
  94.        
  95.        n = n - 7;          
  96.        
  97.     }  while(n > 0);
  98.    
  99. }
  100.  
  101.  
  102.  
  103.  
  104.  
  105. */
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. /*
  130.  
  131.  
  132. #include   <stdio.h>
  133.  
  134. void foo1();
  135. void foo2();
  136.  
  137. int n1 = 1;
  138. int n2 = 2;
  139.  
  140. ////////////////////////////////////////////////////   unsigned
  141. int main()                                        //
  142. {
  143.    
  144.    
  145.     if(n1 == 77) foo1();
  146.     else         foo2();   
  147.  
  148.    
  149.    
  150. }
  151.  
  152.  
  153.  
  154. //////////////////////////////////////////////////////
  155. void foo1()
  156. {
  157.      printf("SONY Pictures");
  158. }
  159.  
  160.  
  161. //////////////////////////////////////////////////////
  162. void foo2()
  163. {
  164.      printf("Error!");
  165. }
  166.  
  167.  
  168. */
  169.  
  170.  
  171.  
  172.  
  173.  
  174. /*
  175. #include   <stdio.h>
  176.  
  177.  
  178.  
  179. int n1 = 1;
  180. int n2 = 2;
  181.  
  182. ////////////////////////////////////////////////////   unsigned
  183. int main()                                        //
  184. {
  185.    
  186.    
  187.     if(n1 == 2)
  188.     {
  189.        
  190.        printf("SONY Pictures");
  191.        
  192.     }
  193.     else
  194.     {
  195.         printf("Error!");
  196.     }
  197.    
  198.    
  199. }
  200.  
  201.  
  202. */
  203.  
  204.  
  205.  
  206.  
  207.  
  208. /*
  209.  
  210. #include   <stdio.h>
  211.  
  212.  
  213.  
  214. int n = 1;
  215.  
  216.  
  217. ////////////////////////////////////////////////////   unsigned
  218. int main()                                        //
  219. {
  220.    
  221.    
  222.     while(n < 8)
  223.     {
  224.        
  225.        printf("%d) SONY Pictures\n", n);
  226.        
  227.        n++;
  228.     }
  229.    
  230.    
  231. }
  232.  
  233. */
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248. /*
  249.  
  250. #include   <stdio.h>
  251.  
  252.  
  253.  
  254. int n = 7;
  255.  
  256.  
  257. ////////////////////////////////////////////////////   unsigned
  258. int main()                                        //
  259. {
  260.    
  261.    
  262.     while(n > 0)
  263.     {
  264.        
  265.        printf("%d SONY Pictures\n", n);
  266.        
  267.        n--;
  268.     }
  269.    
  270.    
  271. }
  272.  
  273.  
  274. */
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291. /*
  292.  
  293. #include   <stdio.h>
  294.  
  295.  
  296.  
  297. int n = 77;
  298.  
  299.  
  300. ////////////////////////////////////////////////////   unsigned
  301. int main()                                        //
  302. {
  303.    
  304.    
  305.     if(n < 100)
  306.     {
  307.        
  308.        printf("SONY Pictures");
  309.     }
  310.    
  311.    
  312. }
  313.  
  314. */
  315.  
  316.  
  317. //  True != 0
  318. //  False = 0    
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement