SHARE
TWEET

Untitled

a guest Oct 18th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <limits.h>
  5. int main()
  6. {
  7.     int min;
  8.     int init=1;
  9.     int x;
  10.     do{
  11.         printf("x= ");
  12.         scanf("%d", &x);
  13.         if (!x)
  14.             break;
  15.         if(x%2==0)
  16.         {
  17.             if ( init!=0)
  18.             {
  19.                 init = 0;
  20.                 min = x;
  21.             }
  22.             else if (min>x)
  23.             {
  24.                 min =x;
  25.             }
  26.         }
  27.         if (init!=0)
  28.         {
  29.  
  30.         }
  31.  
  32.     } while (x);
  33.     if ( init==1)
  34.     {
  35.         printf("No such numbers...");
  36.     }
  37.     else {printf("Min even element: %d", min); }
  38. return 0;
  39. }
  40. int main99()
  41. {
  42.     unsigned short x=0x7530;
  43.     unsigned char  c1, c2;
  44.     c1 = x;
  45.     c2 = x>>8;
  46.     printf("%x\T%x\n", c2, c1);
  47.     return 0;
  48. }
  49. int main3()
  50. {
  51.     int x, sum=0, i;
  52.     for(i=0;i<5; )
  53.     {
  54.         printf("x =");
  55.     }
  56. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top