Advertisement
KDOXG

Ex. 10

Nov 4th, 2018
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. int F2 (unsigned int n)
  2. {
  3.     if (n == 0) return n;
  4.     int i=1,j=1,k;
  5.     for (j=j; i<2*n-1; j=j+i)
  6.     {
  7.         k=0;
  8.         for (i=i; k == 0; i=i+2)
  9.             k=1;
  10.     }
  11.     return j;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement