daily pastebin goal
25%
SHARE
TWEET

blabla

a guest Dec 13th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. int NZS (int a,int b){
  3.     if(b==0) return a;
  4.     else return
  5. }
  6. int main()
  7. {
  8.     int i,n,a[100];
  9.     scanf("%d",&n);
  10.     for(i=0;i<n;i++)
  11.     scanf("%d",&a[i]);
  12.     int nzs=NZS(a[0],a[1]);
  13.     for(i=2;i<n;i++)
  14.     {
  15.         nzs=NZS(nzs,a[i]);
  16.     }
  17.     printf("%d",nzs);
  18.     return 0;
  19. }
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