MIPI_BaseC_WebinarFRTK/18_Seminar05/06_deviders_p11.c

23 lines
320 B
C
Raw Permalink Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
#include <inttypes.h>
int main(void)
{
uint32_t n, i=2;
scanf("%" PRIu32, &n);
while(i<=n)
{
if(n%i == 0)
{
printf("%" PRIu32 " ",i);
n/=i;
}
else
{
i++;
}
}
printf("\n");
return 0;
}