Advertisement
dllbridge

Untitled

Oct 23rd, 2022
1,110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.61 KB | None | 0 0
  1.  
  2. #include   <stdio.h>
  3.  
  4.  
  5.  
  6.  
  7. int   x,
  8.       y;
  9.      
  10.  
  11. char  c;
  12.  
  13.  
  14.  
  15.  
  16. ////////////////////////////////////////////////////
  17. int main()                                        //
  18. {
  19.  
  20.     scanf("%d%d", &x, &y);
  21.                                        
  22.     for(int i = 1; i <= x; i++)
  23.     {
  24.         for(int k = 1; k <= y; k++)
  25.         {
  26.            scanf("%c", &c);
  27.            if(c == '*')
  28.            {
  29.                
  30.               printf("%d %d", i, k);
  31.               return 0;
  32.            }   
  33.         }
  34.     }  
  35.    
  36. return 0;                                                                                                                                            
  37. }
  38.  
  39.  
  40.  
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement