MIPI_BaseC_WebinarFRTK/07_Lecture07/15_max_find_p39.c

21 lines
301 B
C
Raw Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
#include <inttypes.h>
uint32_t max_find()
{
uint32_t number, max;
scanf("%u", &number);
if(number == 0)
return 0;
max = max_find();
if (max < number)
max = number;
return max;
}
int main()
{
printf("Max=%u",max_find());
return 0;
}