SHARE
TWEET

Untitled

a guest Oct 9th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. void main()
  3. {
  4.     int i,c[1225],sum=0,j,k;
  5.     int a[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,29,40,41,42,43,44,45,46,47,48,49,50};
  6.     for(i=0,k=0;i<50;i++)
  7.     {
  8.         for(j=49;j>i&&k<1225;j--,k++)
  9.         c[k]=a[i]&a[j];
  10.     }
  11.     for(i=0;i<1225;i++)
  12.        {
  13.            sum=sum+c[i];
  14.        }
  15.     printf("%d",sum);
  16. }
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