Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>;
- int main(){
- int x=18326521;
- int y=0;
- int z=0;
- int j=0;
- for (y=1; y<=32;y++){ // valor inicial; condicion; incremento
- z=(x & (1<<y));
- if(z!=0){
- j++;
- printf("La cantidad de ceros es %d\n", j);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement