Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <limits.h>
- int main()
- {
- int min;
- int init=1;
- int x;
- do{
- printf("x= ");
- scanf("%d", &x);
- if (!x)
- break;
- if(x%2==0)
- {
- if ( init!=0)
- {
- init = 0;
- min = x;
- }
- else if (min>x)
- {
- min =x;
- }
- }
- if (init!=0)
- {
- }
- } while (x);
- if ( init==1)
- {
- printf("No such numbers...");
- }
- else {printf("Min even element: %d", min); }
- return 0;
- }
- int main99()
- {
- unsigned short x=0x7530;
- unsigned char c1, c2;
- c1 = x;
- c2 = x>>8;
- printf("%x\T%x\n", c2, c1);
- return 0;
- }
- int main3()
- {
- int x, sum=0, i;
- for(i=0;i<5; )
- {
- printf("x =");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement