Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C Compiler.
- Code, Compile, Run and Debug C program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- #include <stdio.h>
- int main()
- {
- for(int i = 20 ;i<5000 ;i++)
- {
- int n=i;
- int s=0;
- goto LTOP;
- LEND:
- printf("Fail OOPS \n");
- continue;
- LOM1:
- n=(n<<2)-n+1;
- LCHK:
- if(s==61)
- {
- goto LAFT;
- }
- s++;
- goto LTOP;
- LOC1:
- if(n&1)
- {
- goto LOM1;
- }
- goto LEM1;
- LTOP:
- if(!(n>1))
- {
- goto LEND;
- }
- goto LOC1;
- LEM1:
- n=n>>1;
- goto LCHK;
- LAFT:
- printf("Value of s is : %d , value of i = %d \n",s,i);
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement