daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. #include<math.h>
  3. #define n 3
  4. #define m 3
  5. void main ()
  6. {
  7. int a[n][m];
  8. int b[n];
  9. int i,j, min,max,k,l,g,ind,pol,otr;
  10. clrscr();
  11.     for (i=0; i<n; i++)
  12.      for( j=0; j<m; j++)
  13.      scanf("%d", &a[i][j]);
  14.  
  15.   for (i=0; i<n; i++)
  16.    {for (j=0; j<m; j++)
  17.      printf ("%d ",a[i][j]);
  18.        printf ("\n");}
  19.  
  20. ind=0;
  21. for (i=0; i<n; i++)
  22.   {for (j=0; j<m; j++)
  23.    if (a[i][j]<0) otr+=1;
  24. for (j=0; j<=m; j++)
  25.     if (a[i][j]>0) pol+=1;
  26.  
  27.    if (otr==pol) {ind=1; break; }}
  28.  
  29. if (ind==1) printf("%d",i);
  30.   else printf("NIFIGA \n");
  31.  
  32.  
  33. getch();
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top