MIPI_BaseC_WebinarFRTK/17_Seminar04/01_min_p6.c

12 lines
181 B
C
Raw Permalink Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
int main(void)
{
int a=-1, b=-1;
scanf("%d%d", &a, &b);
int min = (a < b) ? a : b;
printf ("min = %d a=%d b=%d\n", min , a, b);
return 0;
}