Paste Search Dynamic
Recent pastes
a b c x y z
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main ()
  4.  {
  5.  int a, b = 5, c;
  6.  double x, y = -.5, z;
  7. printf("a=");
  8. scanf("%d", &a);
  9. x = c = a;
  10.  printf("x = c = a : a=%d c=%d x=%fn", a, c, x);
  11. a += b;
  12. printf("a += b : a=%dn", a);
  13.  x *= b + a; printf("x *= b+a : x=%lfn", x);
  14.  b += a--; printf("b += a-- : a=%d b=%dn", a, b);
  15.  x -= ++c; printf("x -= ++c : c=%d x=%lfn", c, x);
  16. c = a / b; printf("c = a/b : c=%4dn",c); c = a % b;
  17. printf("c = a%%b : c=%dn",c); y += ( a + 1 ) / a++;
  18. printf("y += (a+1)/a++ : a=%d y=%.3lfty=%.0lfn", a, y, y); b = 3 * ( y -= .6 ) + 2 * b + 1;
  19. printf("b = 3*(y-=.6)+2*b+1 : b=%d y=%.1lfn", b, y);
  20.  z = a / 2; printf("z = a/2 : z = a/2 : z=%lfn", z);
  21.  z = (double)a / 2;
  22.  printf("z = (double)a/2 : z=%lfn", z);
  23.  y = ( x = 5.7 ) / 2;
  24. printf("y = (x = 5.7)/2 : x=%lf y=%lfn", x, y);
  25.  y = (int)x / 2; printf("y = (int)x/2 : y=%fn", y);
  26. z = ( b - 3 ) / 2 - x / 5 + ( c /= 2 ) + 1 / 4 * z - y++ + ++b / 3.;
  27.  printf("z = (b-3)/2 - x/5 +(c/=2) + 1/4*z - y++ + ++b/3. :n a=%d b=%d c=%d x=%lf y=%lf z=%lfn", a, b, c, x, y, z);
  28. return 0;
  29. }
Parsed in 0.007 seconds