Advertisement
dllbridge

Untitled

Jan 22nd, 2025
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1.  
  2.  
  3.  
  4. #include <stdio.h>
  5.  
  6.  
  7. //////////////////////////////////////////////
  8. int main()
  9. {
  10.    
  11.     char   v[99] = " SONY Pictures Sunday";
  12.     char  v1[19];
  13.     char  v2[19];
  14.     char  v3[23];
  15.    
  16.     for (int i = 1; i < 5; i++)
  17.     {
  18.        
  19.         v1[i-1] = v[i];
  20.  
  21.     }
  22.     v1[4] = 0;
  23.     printf( "%s\n", v1);   
  24.    
  25.  
  26.  
  27.  
  28.     for (int i = 6; i < 14; i++)
  29.     {
  30.        
  31.         v2[i-6] = v[i];
  32.  
  33.     }
  34.     v2[8] = 0;
  35.     printf( "%s\n", v2);   
  36.  
  37.  
  38.  
  39.     for (int i = 15; i < 22; i++)
  40.     {
  41.        
  42.         v3[i-15] = v[i];
  43.  
  44.     }
  45.     v3[6] = 0;
  46.     printf( "%s\n", v3);   
  47. }
  48.  
  49.  
  50.  
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement