├── README.md ├── array └── sum between range.c └── countsetbit.c /README.md: -------------------------------------------------------------------------------- 1 | # C-codes -------------------------------------------------------------------------------- /array/sum between range.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | 3 | Online C Compiler. 4 | Code, Compile, Run and Debug C program online. 5 | Write your code in this editor and press "Run" button to compile and execute it. 6 | 7 | *******************************************************************************/ 8 | 9 | #include 10 | 11 | int main() 12 | { 13 | int n,t; 14 | scanf("%d",&n); 15 | int arr[n]; 16 | for(int i=0;i 10 | int main() 11 | { 12 | int n,c=0; 13 | scanf("%d",&n); 14 | while(n>0){ 15 | if(n & 1 == 1){ 16 | c++; 17 | } 18 | n = n>>1; 19 | } 20 | printf("%d",c); 21 | return 0; 22 | } 23 | --------------------------------------------------------------------------------