Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int corobi(int num, int bity);
- int main (){
- int zm, zm1;
- zm = 5;
- int b=4;
- ("%d %d \n", zm, corobi(zm,4));
- }
- int corobi(int num, int bity){
- int maska=0;
- int wart = 1;
- while (bity --> 0)
- {
- printf(" %d ", bity);
- maska |=wart;
- printf("##%d##",maska);
- wart <<=1;
- printf("!!%d!!",wart);
- }
- return num^maska;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement