Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  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 <stdio.h>
  10.  
  11. int main()
  12. {
  13.  
  14. for(int i = 20 ;i<5000 ;i++)
  15. {
  16. int n=i;
  17. int s=0;
  18. goto LTOP;
  19. LEND:
  20. printf("Fail OOPS \n");
  21. continue;
  22. LOM1:
  23. n=(n<<2)-n+1;
  24. LCHK:
  25. if(s==61)
  26. {
  27. goto LAFT;
  28. }
  29. s++;
  30. goto LTOP;
  31. LOC1:
  32. if(n&1)
  33. {
  34. goto LOM1;
  35. }
  36. goto LEM1;
  37. LTOP:
  38. if(!(n>1))
  39. {
  40. goto LEND;
  41. }
  42. goto LOC1;
  43. LEM1:
  44. n=n>>1;
  45. goto LCHK;
  46. LAFT:
  47. printf("Value of s is : %d , value of i = %d \n",s,i);
  48. break;
  49. }
  50. return 0;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement